Given a binary tree
Populate the nextRight pointers in each node.
You may assume that it is a full binary tree (ie, each node other than the leaves has two children.)
Read full article from A binary tree problem – Populating next right pointers in each node | LeetCode
No comments:
Post a Comment