write a program to reverse the order of the given single linked list.
Anonymous
void reverse(node** head) { node* cur = *head; *head = null; while (cur) { node* next = cur->next; cur->next = *head; *head = cur; cur = next; } }
Check out your Company Bowl for anonymous work chats.