[ppxyn1] WEEK 01 solutions#1982
Conversation
| # idea: - | ||
| class Solution: | ||
| def longestConsecutive(self, nums: List[int]) -> int: | ||
| sorted_nums = sorted(list(set(nums))) |
There was a problem hiding this comment.
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! |
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!