Salesforce Interview Question

Connect next pointers at every level of a complete binary tree and then for a generic binary tree

Interview Answer

Anonymous

Jan 7, 2019

Solved using DFS as well as BFS, then was asked to optimize space complexity.