tonyzhu163

Results comments of tonyzhu163

Hi, I have the same issue. What is the preferred way to extract the predicted result from graph node classification models?

Note: 直接用model 内置forward/predict进行预测

```py # Aug 16 # LC 380 Insert Delete GetRandom O(1) # random O(1) means there must be an array # an map can help remove be O(1) from random...

```py # Aug 16 # Maximum Depth of a Tree # There is either a recursive solution, or a traversal solution class TreeNode: def __init__(self, val=0, left=None, right=None): self.val =...

https://leetcode.com/problems/range-sum-query-immutable/discuss/3918178/LC-303-Python

https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/discuss/3918198/LC-34-Python

https://leetcode.com/problems/partition-list/discuss/3918163/LC-5-Python

https://leetcode.com/problems/range-addition/discuss/3918190/LC-370-Python

```py # Aug 16 # LC Invert Tree # recusive solution is straightforward # traverse solution do inversion and then traverse class Solution: def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if...

https://leetcode.com/problems/lru-cache/discuss/3918213/LC-146-Python