ByteDance / TikTokCoding·30 minMembers
Remove Duplicate Letters for Lexicographically Smallest Result
Members only
ByteDance / TikTok phone-screen coding prompt around de-duplicating a string while preserving the best lexical outcome. It appears after a backend/project discussion, so the implementation window is short and the interviewer expects a crisp invariant rather than exploratory brute force.
SWE
string
stack
monotonic-stack
greedy
medium
Frequency
Low
Last asked
2026-07-13
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
