-
-
Notifications
You must be signed in to change notification settings - Fork 301
[ppxyn1] WEEK 01 solutions #1982
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
Conversation
daiyongg-kim
left a comment
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.
코멘트 참고하세요.
| # idea: - | ||
| class Solution: | ||
| def longestConsecutive(self, nums: List[int]) -> int: | ||
| sorted_nums = sorted(list(set(nums))) |
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.
You must write an algorithm that runs in O(n) time.
- 제약사항이 있습니다.
- sorting 사용하면 nlog(n) 이라 성공하더라도 맞지 않는 것 같습니다.
|
Great job on implementing a variety of solutions across different problems! Your code is generally clear and follows good practices. Here are some constructive suggestions to enhance your solutions further:
Overall, you're on the right track! Incorporating these suggestions will make your solutions more efficient and easier to understand. Keep up the excellent work! |
daiyongg-kim
left a comment
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.
수고하셨스니다.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!