ThirdEye AI interview question

R2: How to reverse a linked list?

Interview Answer

Anonymous

18 Jul 2023

prev = next = NULL, curr = head next = curr -> next curr -> next = prev prev = curr curr = next I got a little bit confused while answering this question.