All Problems

First Missing Positive

HardarrayExpected: O(n) time, O(n) spaceInterview Context
hash-map

Problem

Given an unsorted integer array, find the smallest missing positive integer.

Loading...