...

/

DIY: Populating Next Right Pointers in Each Node II

DIY: Populating Next Right Pointers in Each Node II

Solve the interview question "Populating Next Right Pointers in Each Node II" yourself in this lesson.

We'll cover the following...

Problem statement

You are given a perfect binary tree. We have added an additional next pointer to our TreeNode implementation.

Populate each next pointer so it points to ...