binary tree demo , source in Github

image
image

traversal

  • pre-order traversal
  • in-order traversal
  • post-order traversal
  • level-order traversal

function

  • invert binary tree
  • height
  • isComplete
  • isFull
  • isBalanced

tools

  • Array to binary tree
  • binary to UIView

Github