From 9405c1f4d0345e0c54ee0f71eb99335b89678c6e Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 15 Oct 2020 18:41:13 +0000 Subject: [PATCH 1/2] updating DIRECTORY.md --- DIRECTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/DIRECTORY.md b/DIRECTORY.md index 7e72b439e..004365234 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -69,6 +69,7 @@ * [Searching Of Element In Dynamic Array](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/dynamic_programming/searching_of_element_in_dynamic_array.cpp) * [Shortest Common Supersequence](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/dynamic_programming/shortest_common_supersequence.cpp) * [Tree Height](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/dynamic_programming/tree_height.cpp) + * [Word Break](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/dynamic_programming/word_break.cpp) ## Geometry * [Jarvis Algorithm](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/geometry/jarvis_algorithm.cpp) From c909bce81d19780bc101f074c789f4612e01b1b9 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 15 Oct 2020 18:41:27 +0000 Subject: [PATCH 2/2] clang-format and clang-tidy fixes for 061c21ae --- dynamic_programming/word_break.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic_programming/word_break.cpp b/dynamic_programming/word_break.cpp index 14e7c31e4..9518ded5d 100644 --- a/dynamic_programming/word_break.cpp +++ b/dynamic_programming/word_break.cpp @@ -147,7 +147,6 @@ class Solution { } // namespace word_break } // namespace dynamic_programming - /** * @brief Main function * @returns 0 on exit @@ -160,5 +159,6 @@ int main() { // should return true, as applepenapple can be segmented as apple + pen + // apple - cout << dynamic_programming::word_break::Solution().wordBreak(s, wordDict) << endl; + cout << dynamic_programming::word_break::Solution().wordBreak(s, wordDict) + << endl; }