Every MEX Reachable With At Most One Bounded Increment

Quick Overview

A coding problem about memory blocks with values below n: using at most one increment of a single value, never raising a value to n, list every minimum excluded value (MEX) the array can end up with. It tests careful case analysis of how one increment can open or fill a gap, handling duplicate values, and returning the sorted answer efficiently.

Every MEX Reachable With At Most One Bounded Increment

Company: Citadel

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Online Assessment

Overview: A coding problem about memory blocks with values below n: using at most one increment of a single value, never raising a value to n, list every minimum excluded value (MEX) the array can end up with. It tests careful case analysis of how one increment can open or fill a gap, handling duplicate values, and returning the sorted answer efficiently.

Citadel logo
Citadel
Oct 2, 2026
hardSoftware EngineerOnline AssessmentCoding & Algorithms
36
0
Loading...