From 6107a34b96b1c31fb0eb604acf805de4fc4ba419 Mon Sep 17 00:00:00 2001 From: Akshay Anand Date: Fri, 16 Oct 2020 00:09:29 +0530 Subject: [PATCH] Update dynamic_programming/word_break.cpp Co-authored-by: David Leal --- dynamic_programming/word_break.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dynamic_programming/word_break.cpp b/dynamic_programming/word_break.cpp index 67be17d06..51a7c2d50 100644 --- a/dynamic_programming/word_break.cpp +++ b/dynamic_programming/word_break.cpp @@ -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 &strSet, int pos, vector *dp) {