mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-12 15:05:47 +08:00
Update docs search/sublist_search.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user