-
[LeetCode] 41. First Missing PositiveLife/PS 2026. 5. 24. 14:24

Naive approach to solve this problem is using hashmap.

However, we can use the fact that the answer must lower that len(nums)+1.

'Life > PS' 카테고리의 다른 글
[LeetCode] 42. Trapping Rain Water (0) 2026.05.27 [LeetCode] 32. Longest Valid Parentheses (0) 2026.05.23 [LeetCode] 25. Reverse Nodes in k-Group (0) 2026.05.22 [LeetCode] 30. Substring with Concatenation of All Words (0) 2026.05.22 [LeetCode] 23. Merge k Sorted Lists (0) 2026.05.18