Back to Question

Design a Compressed String Iterator

Question Explain

Design an iterator that supports the `next` and `hasNext` operations for a run-length encoded string (e.g., 'L1e2t1c1o1d1e1').

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.