Back to Questions

Design a Compressed String Iterator

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

Practice with This Question