Update dynamic_programming/word_break.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Akshay Anand
2020-10-16 00:09:17 +05:30
committed by GitHub
parent 19330b48d0
commit 538aee2d5d

View File

@@ -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();