-
Maximum sum of subarray of SIZe k
Refer to g4g: https://www.geeksforgeeks.org/find-maximum-minimum-sum-subarray-size-k/ Simple Solution to this problem can be a brute force where we can check all the K size subarrays. For example If input is 4, 2, 1, 7, 8, 1, 2, 8, 1, 0 and K 3 We can take 4, 2,1 2, 1, 7 1, 7, 8 7, 8, 1…
-
SLIDING WINDOW
I am listing all problems which I encounter related to sliding window here. Feel free add more in the comments. Sr Problem Title Blog LeetCode GeeksforGeeks 1 Longest Substring Without Repeating Characters https://leetcode.com/problems/longest-substring-without-repeating-characters/ https://www.geeksforgeeks.org/problems/length-of-the-longest-substring3036/1 2 Maximum Sum Subarray https://leetcode.com/problems/maximum-subarray/ https://www.geeksforgeeks.org/sum-of-all-subarrays/ 3 Find the Largest Window Size with Maximum Elements N/A [Largest subarray with maximum sum…
-
Subsets
Subset problems.
Subscribe
Enter your email below to receive updates.