Q1.First Missing Positive
Given a list of integers nums, find the first missing positive integer. In other words, find the
lowest positive integer that does not exist in the array. The array can contain duplicates and
negative numbers as well.
Constraints :
n <= 100,000 where n is the length of nums .
Example 1 :
Input :-
Nums = [1, 2, 3]
Output :-
4
Example 2 :
Input :-
Nums = [3, 4, -1, 1]
Output :-
2
Example 3 :
Input :-
Nums = [1, 2, 0]
Output :-
3
Example 3 :
Input :-
Nums = [-1, -2, -3]
Output :-
1
Answers
Answered by
0
Answer:
25643578/69835472(698575595)
Similar questions