IBM Interview Question
649 Interview Reviews |
Back to all IBM Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at IBM:
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Interview Candidate:
Reverse(Node *head)
{
Node *prev = NULL, *next = NULL;
while (NULL != head) {
next = head->next;
head->next = prev;
prev = head;
head = next;
if (NULL != next) {
next = next->next;
}
}
return prev;
}