mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-07 05:42:03 +08:00
Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ class Solution {
|
||||
*
|
||||
* @param str the string to be searched
|
||||
* @param strSet unordered set of string, that is to be looked into
|
||||
* @returns bool, true if str is present in strSet
|
||||
* @returns true if str is present in strSet
|
||||
*/
|
||||
bool exists(const string &str, const unordered_set<string> &strSet) {
|
||||
return strSet.find(str) != strSet.end();
|
||||
|
||||
Reference in New Issue
Block a user