Maximum Product Subarray - Best Intuitive Approach Discussed

preview_player
Показать описание


We have solved the problem, and we have gone from brute force and ended with the most optimal solution. Every approach's code has been written in the video itself. Also, we have covered the algorithm with intuition.

You can follow me across social media, all my handles are below:

0:00 Introduction of Course
Рекомендации по теме
Комментарии
Автор

He is a real competitive programmer in all YouTubers who teaches DSA in India

Iron_Man
Автор

I had never seen this approach and the way you explain is like you own it.!!!
Superb work striver bro

SHASHANKRUSTAGII
Автор

Just a small change in the code for those who are wondering why 191th test case is not passing on leetcode, just change the data type of ans, pre and suff to double so as to prevent overflow in the intermediate steps. It has much bigger range than long and long long. Btw great explaination striver!!

harshgupta
Автор

Completed this playlist also, MAN this is the best teacher of DSA.

chiragbansod
Автор

You're God sent for us to learn in last moment ❤

pramodharshav
Автор

Arrays completed
Tomorrow I will revise full arrays before starting binary search

AbjSir
Автор

I was literally searching for the intuitive approach and finally found it.. really appreciate it..
and a great explanation..

MischievousSoul
Автор

Brilliant! this is actually much more intuitive as I was also thinking of applying prefix and suffix in it, just couldn't react to the final answer.
Thanks.

aryanyadav
Автор

bro no need any more examples you were the best in explaining this question with the most examples the cases...
Really understood the concept very well. Thank you for the video...

SusinSunilkumar
Автор

Had to give this a like, can't lie the best explanation for this problem.

calvinseptyanto
Автор

Hey Striver can you add the famous Egg Dropping Problem in your DP series? It will be of great help to many students.

saunaknandi
Автор

Best Solution, will never forget this solution .

messi_codes
Автор

This approach is awesome! I've seen others teaching the same old Kadane approach, but this observation-based method is a real gem. Keep up the great work and keep sharing your insights!

najimali
Автор

I do not know who has observed the optimal approach but whoever the guy was, it was brilliant
Thanks for your explanation Striver
Understood it very well
And waiting for your Binary Search series...

vikasbagri
Автор

Happy to see your video. So many videos I watched for this question. Finally i can get the intutive for the question.

madhulikaghosh
Автор

In leetcode take double for suffix, prefix and return value .so the last test case not gonna be int overflow

Brutal-gzjz
Автор

Best explanation ever i have seen for this. Thank you bro 🙏

KishoreKumar-xrfu
Автор

Was struggling to understand the explanation of this problem, but after tour video I am amazed how easy it is :D

CrytpoDeFi
Автор

Best explanations and best qualities. You are a striver indeed.

torishi
Автор

Completed this playlist.... Gain confidence and knowledge.... Thank you Bhaiya ❤❤

CinematicClips-uzmk