Salesforce interview question

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

Interview Answer

Anonymous

7 Jan 2019

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