LeetCode 900: RLE Iterator
A clear explanation of designing an iterator over a run-length encoded sequence without expanding it.
7 notes
A clear explanation of designing an iterator over a run-length encoded sequence without expanding it.
A guide to implementing a lazy iterator over a run-length encoded string without fully decompressing it.
A clear explanation of Flatten Nested List Iterator using lazy stack-based flattening.
A wrapper iterator design that supports peeking at the next element without advancing the iterator.
A queue-based iterator design for returning elements from two vectors in alternating order, with a clean extension to k vectors.
A clear explanation of the Flatten 2D Vector problem using row and column pointers to implement an iterator.
A clear explanation of designing an iterator over a BST using controlled inorder traversal with a stack.