Populating Next Right Pointers in Each Node code example
Example: binary tree with sibling pointer in leetcode
struct Node {
int val;
Node *left;
Node *right;
Node *next;
}
struct Node {
int val;
Node *left;
Node *right;
Node *next;
}