[1st Interview] Swap the max and min node in an int linked list. The function must return void.
Anonymous
Not hard. The confusion point is that the signature is void swapMaxMin(Node** root), which makes sense since you wish to return void.
Check out your Company Bowl for anonymous work chats.