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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.