Bloomberg Interview Question

Write a solution to print the values of a binary tree in order.

Interview Answer

Anonymous

Dec 13, 2019

This can be done using recursion. Visit left node. Add current node. Visit right node. Repeat until a node is null.