Arista Networks interview question

[1st Interview] Swap the max and min node in an int linked list. The function must return void.

Interview Answer

Anonymous

3 Nov 2017

Not hard. The confusion point is that the signature is void swapMaxMin(Node** root), which makes sense since you wish to return void.

1