Sollicitatievraag bij Amazon

Reverse a linked list using pointers (C programming language)

Antwoord op sollicitatievraag

Anoniem

13 mei 2016

Is the below answer correct? temp = head; while (next!=null){ if (current==null){return;} temp = current; current = next; next = temp; } return current, next; }

1