LeetCode #252: Meeting Rooms

https://leetcode.com/problems/meeting-rooms/description/ In this problem, we are given a list of intervals, each representing a meeting start and end time, and…

Read More

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