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