Substring With Largest Variance | Full Dry Run | Leetcode-2272 | AMAZON, GOOGLE | Explanation

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=M428--94ny0



Duration: 40:29
2,325 views
142


Qns based on variation of Kadane's Algorithm :-

Qn-1 : https://practice.geeksforgeeks.org/problems/maximum-sum-rectangle2948/1
This question will help you to solve Leetcode-363(Max Sum of Rectangle No Larger Than K)
It's based on Kadane's Algo in 2-D Array
My Github Link - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/02b428345398ca09be935de3d5b9f37d9bd00e72/DP/Maximum%20Sum%20Rectangular%20Submatrix%20in%20Matrix%20dynamic%20programming(2-D%20kadane).cpp#L17


Qn-2 : Leetcode-918 (Maximum Sum Circular Subarray)
My Github Link - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/02b428345398ca09be935de3d5b9f37d9bd00e72/Arrays/Maximum%20Sum%20Circular%20Subarray.cpp#L12


Qn-3 : Max Sum of Rectangle No Larger Than K
This question is an application of "Maximum sum Rectangle in 2-D matrix (2-D Kadane's Algorithm)"
My Github Link - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/02b428345398ca09be935de3d5b9f37d9bd00e72/DP/Max%20Sum%20of%20Rectangle%20No%20Larger%20Than%20K.cpp#L6


Qn-4 : Leetcode - 152 (Maximum Product Subarray)
//Smart variation of Kadane's Algorithm
My Github Link - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/02b428345398ca09be935de3d5b9f37d9bd00e72/DP/Maximum%20Product%20Subarray.cpp#L6



Qn-5 : Leetcode - 53 (Maximum Subarray)
The actual classic Kadane's Algorithm
https://github.com/MAZHARMIK/Interview_DS_Algo/blob/02b428345398ca09be935de3d5b9f37d9bd00e72/Arrays/Maximum_Subarray.cpp#L64

----------------------------------------------------------------------------------------------------------------------------------
Hi everyone, this is the 16th video of our Strings playlist.
In this video we will try to solve an excellent problem and a good variation of Kadane's Algorithm “Substring With Largest Variance”.

We will write very easy and clean code with intuition building and understanding each line of code.
We will do live coding after explanation and see if we are able to pass all the test cases.


Problem Name : Substring With Largest Variance
Company Tags : AMAZON, GOOGLE
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/strings/Substring%20With%20Largest%20Variance.cpp
Leetcode Link : https://leetcode.com/problems/substring-with-largest-variance/


My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish




Other Videos By codestorywithMIK


2023-07-15Maximum Number of Events That Can Be Attended II | Recur + Memo | 2 Ways | AMAZON | Leetcode-1751
2023-07-14Consistency is the 🔑 #consistency #motivation #motivational #coding #leetcode #reels #youtubeshorts
2023-07-14Longest Arithmetic Subsequence of Given Difference | Recur + Memo | Optimal | META | Leetcode-1218
2023-07-13Maximum Alternating Subsequence Sum |Recursion & Memo|Tree Diagram|DP Concepts & Qns-9|Leetcode-1911
2023-07-12Find Eventual Safe States | 2 Approaches | Intuition | Leetcode-802 | MICROSOFT | Explanation
2023-07-11Make the most if this 6 months remaining in Year 2023 . #motivation #hardwork #motivational
2023-07-11All Nodes Distance K in Binary Tree | Approach-1 | Leetcode-863 | AMAZON | Explanation ➕ Live Coding
2023-07-10Prim's Algorithm | Minimum Spanning Tree | Full Dry Run | INTUITION | Graph Concepts & Qns - 34
2023-07-10Minimum Depth of Binary Tree | Leetcode-111 | BFS | DFS | AMAZON | Explanation ➕ Live Coding
2023-07-09CONSISTENCY is the 🔑 #consistency #motivation #hardwork #determination #coding #interview #coding
2023-07-09Substring With Largest Variance | Full Dry Run | Leetcode-2272 | AMAZON, GOOGLE | Explanation
2023-07-08Put Marbles in Bags | Full Intuition | Dry Run | Leetcode-2551 | AMAZON | Explanation ➕ Live Coding
2023-07-07Maximize the Confusion of an Exam | 3 Approaches | MICROSOFT | Leetcode-2024 | Explanation
2023-07-05Minimum Size Subarray Sum | GOOGLE | AMAZON | Leetcode-209 | Explanation ➕ Live Coding
2023-07-04Longest Subarray of 1's After Deleting One Element | Multiple Approaches | GOOGLE | Leetcode-1493
2023-07-04Single Number II | Multiple Approaches | GOOGLE, AMAZON | META | Leetcode-137 | Explanation
2023-07-03Trust the process #hardwork #confidence #coding #motivation #motivational #motivationalvideo #reels
2023-07-02Buddy Strings | GOOGLE | META | Leetcode-859 | Explanation ➕ Live Coding
2023-07-02Thank you for 5k Subscribers #thankyou #subscribe #subscribers #support #coding #easyrecipes #love
2023-07-02Maximum Number of Achievable Transfer Requests | Khandani Backtracking Template | Leetcode-1601
2023-07-02Thank you all for 100 Instagram Followers ❤️#instagram #instalike #reelsinstagram #100followers