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:
@@ -64,7 +64,8 @@ class Solution {
|
||||
* @param pos the index value at which we will segment string and test
|
||||
* further if it is correctly segmented at pos
|
||||
* @param dp the vector to memoize solution for each position
|
||||
* @returns bool, true if str is present in strSet
|
||||
* @returns `true` if str is present in strSet
|
||||
* @returns `false` if
|
||||
*/
|
||||
bool check(const string &s, const unordered_set<string> &strSet, int pos,
|
||||
vector<int> *dp) {
|
||||
|
||||
Reference in New Issue
Block a user