LeetCode #139: Word Break

https://leetcode.com/problems/word-break/ To solve this problem, we can use a backtracking approach that checks all possible combinations of substrings that exist…

Read More

LeetCode #91: Decode Ways

https://leetcode.com/problems/decode-ways/ We can solve this problem by using dynamic programming. Let’s start by considering each character of the string s…

Read More