Back to Questions

Design a Compressed String Iterator (Advanced)

85.2K viewsAsked 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.

Practice with This Question