116 Populating Next Right Pointers in Each Node
116. Populating Next Right Pointers in Each Node
1. Question
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
} 1
/ \
2 3
/ \ / \
4 5 6 72. Implementation
3. Time & Space Complexity
Previous114 Flatten Binary Tree to Linked ListNext117 Populating Next Right Pointers in Each Node II
Last updated