Iterator Problems

Master iterator problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 4 problems in this category.

Total Problems: 4
Medium: 4
Showing 4 of 4 problems

Iterator LeetCode Problems List

  • 341. Flatten Nested List Iterator - Medium - IteratorYou are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists. Im... Topics: Stack, Tree, Depth-First Search, Design, Queue, Iterator
  • 173. Binary Search Tree Iterator - Medium - IteratorImplement the BSTIterator class that represents an iterator over the in-order traversal of a binary search tree (BST): BSTIterator(TreeNode root) Init... Topics: Stack, Tree, Design, Binary Search Tree, Binary Tree, Iterator
  • 936. RLE Iterator - Medium - IteratorWe can use run-length encoding (i.e., RLE) to encode a sequence of integers. In a run-length encoded array of even length encoding (0-indexed), for al... Topics: Array, Design, Counting, Iterator
  • 284. Peeking Iterator - Medium - IteratorDesign an iterator that supports the peek operation on an existing iterator in addition to the hasNext and the next operations. Implement the PeekingI... Topics: Array, Design, Iterator

Related LeetCode Topics

Iterator LeetCode Problems - Interview Coder