LeetCode #55: Jump Game

https://leetcode.com/problems/jump-game/ We can solve this problem using a greedy approach. We can keep track of the furthest index that can…

Read More

LeetCode #53: Maximum Subarray

https://leetcode.com/problems/maximum-subarray/ The problem requires finding the maximum sum of a contiguous subarray. This problem can be solved using the Kadane’s…

Read More

1143. Longest Common Subsequence

https://leetcode.com/problems/longest-common-subsequence/description/ A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without…

Read More

LeetCode #62: Unique Paths

https://leetcode.com/problems/unique-paths/description/ To solve this problem, we can use dynamic programming. We create a 2D array path where path[i][j] represents the…

Read More

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