mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 02:02:23 +08:00
Update Linked List.cpp
fix: reverse check for empty list + cpp lint final coding style
This commit is contained in:
@@ -88,9 +88,8 @@ void reverse() {
|
||||
}
|
||||
start->next = NULL;
|
||||
start = first;
|
||||
}
|
||||
else {
|
||||
cout<<"\nEmpty list";
|
||||
} else {
|
||||
cout << "\nEmpty list";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user