We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c959e commit 5a7c47aCopy full SHA for 5a7c47a
python/0128-longest-consecutive-sequence.py
@@ -1,5 +1,5 @@
1
class Solution:
2
- def longestConsecutive(self, nums: list[int]) -> int:
+ def longestConsecutive(self, nums: List[int]) -> int:
3
numSet = set(nums)
4
longest = 0
5
0 commit comments