
41. First Missing Positive
·
Algorithm
First Missing Positive - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 정수로 구성된 배열이 주어진다. 이 정수 배열에 존재하지 않는 가장 작은 양의 정수를 반환하는 문제다. 단 시간 복잡도는 O(N)으로 제한하고, 추가 공간은 상수 레벨까지만 허용한다. 예시 1 Input: nums = [1,2,0] Output: 3 2 Input: nums = [3,4,-1,1] Output: 2 3 Input: nums = [7,8,9,11,12] Ou..