← FactSet questions

First missing positive integer

Filed under FactSet · Also reported at GammaStack

Given an unsorted integer array, find the smallest missing positive integer. The algorithm must run in O(n) time and use O(1) auxiliary space. You should ignore non-positive numbers and focus on…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related FactSet questions

Collected from public candidate posts and coding forums. Updated Nov 2026.