Populate next pointer to right node in Perfect Binary Tree

mediumSolve on LeetCode
Last edited: August 2, 2025