Marks :10
: 2 | : 0
Given an unsorted array $$$arr[]$$$ of size $$$n$$$, with both positive and negative elements, the task is to find the smallest positive number missing from the array.
The first line contains two integers n, $$$(1 \le n \le 10^5)$$$, the size of the array.
The second line contains n integers, $$$(1 \le arr_i \le 10^9)$$$
Return the smallest missing positive integer.
6 1 5 6 -2 4 2
3
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.