Computer Science
Invert alternate levels of a perfect binary tree
Write an efficient algorithm to invert alternate levels of a perfect binary tree. For example, consider below tree It should be converted to following tree: 1. Using Level Order Traversal The idea is Read more…