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

Nov 3, 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