All question types

Iterative Binary Tree

Binary-tree problems solved iteratively — walk the tree with your own stack or queue instead of recursion.

Course notes:Node and class declarationIterative methods— one way to write these, to compare against, not a key.

Generate a question

Free models work without credits; paid ones may write better questions.