Update Linked List.cpp

fix: reverse check for empty list + cpp lint final coding style
This commit is contained in:
Marian Gusatu 2020-04-22 12:21:48 +03:00 committed by GitHub
parent 9c508e4fbb
commit 248c335bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,9 +88,8 @@ void reverse() {
}
start->next = NULL;
start = first;
}
else {
cout<<"\nEmpty list";
} else {
cout << "\nEmpty list";
}
}