AmazonCoding·40 minMembers
Lexicographically Minimal BoxIds via +1/9 Op
Members only
Given a digit string `boxIds`, repeatedly remove a digit and re-insert `min(digit + 1, 9)` anywhere in the string. Return the lex-minimal achievable string.
SWE
string
greedy
simulation
hard
Frequency
Single report
Last asked
2026-03-22
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
