Back to QuestionsPractice with This Question
Design a Compressed String Iterator
47.7K views•Asked at Stripe•
Medium
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
Practice answering orally or with text to get instant AI feedback.