Back to QuestionsPractice with This Question
Connect Next Pointers in Perfect Binary Tree
73.2K views•Asked at Netflix•
Medium
Question Explain
Populate each next pointer to point to its next right node in a perfect binary tree. If there is no next right node, the next pointer should be set to `NULL`. Solve using BFS or recursion.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.