First Missing Positive
Hard📝 Description
Find smallest missing positive integer in unsorted array
Input Format
Array of integers
Output Format
First missing positive
Constraints
1 ≤ nums.length ≤ 10^5
🔍 Sample Input
[3,4,-1,1]
✅ Sample Output
2
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run