Back to Question

Design a Compressed String Iterator (Advanced)

Question Explain

Design an iterator for a run-length encoded string that handles sequences of characters and numbers, supporting `next` and `hasNext` efficiently.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.