AmazonCoding·40 minMembers
Lexicographically Largest String via State Flips
Members only
Build a length-m string by repeatedly picking the largest currently-available element. After each pick, every `0` directly to the right of a `1` in the state mask flips to `1`, unlocking more elements...
SWE
array
greedy
heap
simulation
hard
Frequency
Single report
Last asked
2026-04-19
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
