Citadel / Citadel Securities logoCitadel / Citadel Securities
CodingMembers

Memory Blocks — Reachable MEX After One Increment

Members only

Campus SDE OA: given n memory blocks with values in [0, n), you may optionally increment one block by 1 (only if its value is < n-1). Implement `findValidSizes(memoryBlocks)` returning the sorted list...

SWE
array
hashmap
medium
Frequency
Single report
Last asked
2026-10-01
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...