Invert Binary Tree

 

226. Invert Binary Tree

Solutions

Recursive Solution

  1. Invert children of the root
  2. Assign left child to right, assign right child to left.