Pregunta de entrevista de Amazon

Reverse a linked list using pointers (C programming language)

Respuesta de la entrevista

Anónimo

13 de may de 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