Search
⌘K

Leetcode 604. Design Compressed String Iterator

Implement an iterator over a run-length–encoded string that supports next() and hasNext(); the challenge is to parse counts (possibly multi-digit) and return characters lazily and efficiently without fully decompressing the string.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.