-
-
Notifications
You must be signed in to change notification settings - Fork 47k
Longest Consecutive Sequence LeetCode problem #9686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
cc60085
66aa0a6
2e406a0
dcf7fa0
0ec6a75
5baa500
7484018
0a5eb1b
92c70f5
4db5841
ca07301
708966e
d10a45f
9d2e88e
56fbcbe
37ec51a
ca3192f
fae996c
afaa185
f5fa312
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
removed the class from the solution Co-authored-by: Chris O <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
""" | ||
|
||
|
||
class Solution: | ||
def longestConsecutiveSequence(self, nums: List[int]) -> int: | ||
# Create a map of all numbers in the array to their index | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An error occurred while parsing the file: Traceback (most recent call last):
File "/opt/render/project/src/algorithms_keeper/parser/python_parser.py", line 146, in parse
reports = lint_file(
^^^^^^^^^^
libcst._exceptions.ParserSyntaxError: Syntax Error @ 10:5.
parser error: error at 9:4: expected one of (, *, +, -, ..., AWAIT, EOF, False, NAME, NUMBER, None, True, [, break, continue, lambda, match, not, pass, ~
# Create a map of all numbers in the array to their index
^ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An error occurred while parsing the file: Traceback (most recent call last):
File "/opt/render/project/src/algorithms_keeper/parser/python_parser.py", line 146, in parse
reports = lint_file(
^^^^^^^^^^
libcst._exceptions.ParserSyntaxError: Syntax Error @ 10:5.
parser error: error at 9:4: expected one of (, *, +, -, ..., AWAIT, EOF, False, NAME, NUMBER, None, True, [, break, continue, lambda, match, not, pass, ~
# Create a map of all numbers in the array to their index
^ |
||
nmap = defaultdict(int) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.