Leetcode 1370. Increasing Decreasing String
Reorder a lowercase string by repeatedly building increasing then decreasing runs: repeatedly append the smallest unused character, then successive larger unused characters until none remain, then append the largest unused character and successive smaller ones, repeating this forward/backward sweep until all characters are used. (Useful observation: this is effectively simulating sweeps over the alphabet with character counts.)
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.