Рет қаралды 140,976
Algorithms Playlist: • Algorithms with Practi...
Placement Preparation Playlist: • Placement Preparation ...
Competitive Programming Playlist: • Competitive Programmin...
Graph Theory Playlist: • Graph Theory Complete
Subscribe for more DSA videos!
**Resources for Competitive Programming/Coding Interviews:
Competitive Programming Course:tinyurl.com/BibleOfCP
DS Algo Course:tinyurl.com/AbdulBariDSA
DS Algo and Coding Interview Course:tinyurl.com/DSACodingInterview
Dynamic Programming:tinyurl.com/DynamicProgrammin...
Competitive Programming Essentials:tinyurl.com/CPEssential
**
Edit: I made a mistake for the subarray on the left [-2,-5,6,-2]: The LSS=-2 RSS=6 and CSS=1.
For CSS{ mid+1=6 ,to the right max=6},{mid=-5 ,on the left max=-5} so CSS=(6-5)=1 Not -1.
See the code for more idea of CSS: • LeetCode 53 Maximum S...
In this video I am going to show how to use divide and conquer to find the maximum value of sum of a contiguous subarray.
For the Code: • LeetCode 53 Maximum S...