mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update Linked List.cpp
fix: reverse check for empty list + cpp lint final coding style
This commit is contained in:
parent
9c508e4fbb
commit
248c335bf5
@ -88,9 +88,8 @@ void reverse() {
|
||||
}
|
||||
start->next = NULL;
|
||||
start = first;
|
||||
}
|
||||
else {
|
||||
cout<<"\nEmpty list";
|
||||
} else {
|
||||
cout << "\nEmpty list";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user