Bloomberg Interview Question

Invert (mirror) a binary tree (easy)

Interview Answer

Anonymous

Nov 6, 2017

recursion: at each level switch root.left and root.right