mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update docs search/sublist_search.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
a003fd3a46
commit
bfbc532405
@ -38,7 +38,8 @@ struct Node {
|
||||
* @brief Main searching function
|
||||
* @param sublist A linked list which is supposed to be searched in mainList.
|
||||
* @param mainList A linked list in which sublist will be searched.
|
||||
* @returns bool If the sublist is found, returns true, else false.
|
||||
* @returns true if the sublist is found
|
||||
* @returns false if the sublist is NOT found
|
||||
*/
|
||||
bool sublistSearch(Node *sublist, Node *mainList) {
|
||||
if (sublist == nullptr || mainList == nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user