I have a (min) Leftist Heap as show below:
1
/ \
8 6
/ \ / \
10 12 14 16
/\ /
18 20 22
And I am asked to show the result of inserting 21. My understanding of leftist heaps is that inserting is just a merge of a single node, in which case, 21 should get compared to each right parent until it reaches the NULL child of 16, and should just automatically get placed in there. Am I wrong? Should it go somewhere else?