โ† Increff questions

MEX of array till each index

Filed under Increff

The question

Given an array of non-negative numbers, return an array where the i-th element is the MEX (first missing positive integer) of the given array up to the i-th index.

No write-up yet. Related questions below have one.

Related Increff questions

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