Bill Gu

Results 13 comments of Bill Gu

27题,左右指针解法 ```python3 class Solution: def removeElement(self, nums: List[int], val: int) -> int: curr, tail = 0, len(nums) - 1 while curr

请问有朋友用 Python 写的吗 我发现一个问题,就是在随机生成数字的时候,用以下这个是正确的 ```Python num = random.uniform(0, self.pre_sum[-1]) + 1 ``` 但是用 randint 在 leetcode 上跑就会报错 ```Python num = random.randint(0, self.pre_sum[-1]) + 1 ```