Skip to content

Commit

Permalink
Merge pull request wangzheng0822#212 from ZuoerdingCoder/master
Browse files Browse the repository at this point in the history
创建环形链表的一个问题
  • Loading branch information
wangzheng0822 authored Jan 7, 2019
2 parents 1bdf5c2 + ec602f9 commit 9bb057a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c-cpp/07_linkedlist/LinkedListAlgo.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ void test_checkCircle() {
SinglyLinkedNode* node = malloc(sizeof(SinglyLinkedNode));
node->data = i;
current->next = node;
//reset current node
current = node;
}
current->next = h;

Expand Down

0 comments on commit 9bb057a

Please sign in to comment.