Skip to content

Commit

Permalink
Update reverseLinkedListIterAndRecurse.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mandliya committed Sep 11, 2015
1 parent 1349f21 commit 9dd25bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linked_list_problems/reverseLinkedListIterAndRecurse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void reverseRecur( Node * & head ) {
}
Node * first = head;
Node * rest = head->next;
reverseIter( rest );
reverseRecur( rest );
first->next->next = first;
first->next = nullptr;
head = rest;
Expand Down

0 comments on commit 9dd25bf

Please sign in to comment.