Skip to content

Commit 3175252

Browse files
committed
[Leo] 5th Week solutions (added rest TC/SC for longest-consecutive q)
1 parent 13e4f2d commit 3175252

File tree

1 file changed

+2
-0
lines changed
  • longest-consecutive-sequence

1 file changed

+2
-0
lines changed

longest-consecutive-sequence/Leo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ def longestConsecutive(self, nums: List[int]) -> int:
1414
longest = max(length, longest)
1515

1616
return longest
17+
18+
## TC: O(n), SC: O(n)

0 commit comments

Comments
 (0)