Coding problems · by pattern

3 binary tree problems, solved step by step.

Problems on binary trees, solved with a recursive walk that trusts the answer for each subtree, or a queue that visits the tree one level at a time. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/3 solved
  1. Invert a Binary TreeEasy
  2. Maximum Depth of a Binary TreeEasy
  3. Binary Tree Level Order TraversalMedium