EPAM Systems OA 2026-February | Missing Number Series | First Missing Positive | On-campus

Question · Posted Jun 2026

Question: First Missing Positive Problem Statement Given an unsorted integer array nums, return the smallest missing positive integer. You must implement an algorithm that runs in O(N) time and uses O(1) auxiliary space. Input Format The first line contains T - the number of test cases. For each test case, the first line contains N. The second line contains N space-separated integers. Output Format For each test case, print the smallest missing positive integer on a new line. Constraints 1 ...

The full answer & interview discussion are available to premium members.

Log in Create a free account