V
venkatesh.k.desai5
Given a linked list with the following property
node2 is left child of node1, if node2 < node1
els, it is the right child.
O P
|
|
O A
|
|
O B
|
|
O C
How do you convert the above linked list to the
form without disturbing the property.
O P
|
|
O B
/ \
/ \
/ \
O ? O ?
where do A and C go?
node2 is left child of node1, if node2 < node1
els, it is the right child.
O P
|
|
O A
|
|
O B
|
|
O C
How do you convert the above linked list to the
form without disturbing the property.
O P
|
|
O B
/ \
/ \
/ \
O ? O ?
where do A and C go?