Skip to content

Commit 47a4e25

Browse files
committed
troublesome bfs
1 parent 5a3f7e0 commit 47a4e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intersection.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ void add(LIST* list, int data)
3737
}
3838
void bubbleSort(LIST* list)
3939
{
40-
NODE* pos; //set the position to head.
40+
NODE* pos; //auxiliary node* that points to head
4141
NODE* tmp = NULL;
4242
int flag = 0; //flag will switch to 1 while it's making swaps
4343
do
4444
{
45-
pos = list->head;
45+
pos = list->head;//set the position to head.
4646
flag = 0;
4747

4848
while (pos->next != tmp)

0 commit comments

Comments
 (0)