Maximum size square sub-matrix with all 1s

  Рет қаралды 23,940

IDeserve

IDeserve

Күн бұрын

Пікірлер: 64
@tempregex8520
@tempregex8520 2 жыл бұрын
i wasn't able to wrap my head around why we need to take the min, but glad you explained it! Thank you
@IDeserve
@IDeserve 2 жыл бұрын
😊
@piyush12121
@piyush12121 8 жыл бұрын
Great solution. One of my friends got same question in his Microsoft Interview. He solved it by brute force though and got selected as well.
@IDeserve
@IDeserve 8 жыл бұрын
+Piyush Chaudhary That was quick! We had uploaded the video just few minutes back :) Please convey congratulations from IDeserve Team to your friend for being selected in Microsoft :) And thanks for your words! We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Thanks, -Team IDeserve.
@ChandraShekhar-by3cd
@ChandraShekhar-by3cd 4 жыл бұрын
Best Explanation Ever on this. Thanks a lot for making such a crystal clear explanation.
@IDeserve
@IDeserve 4 жыл бұрын
Thanks Chandra!
@naveenmarikar4829
@naveenmarikar4829 8 жыл бұрын
You explained it in a way that anyone can understand. Really hats off guys . Great job. Please keep it coming.
@RajatSharmatonystark
@RajatSharmatonystark 8 жыл бұрын
Very nice and concise solutions to all Dynamic programming problems.Thank you sir.
@IDeserve
@IDeserve 8 жыл бұрын
+Rajat Sharma Thanks a lot for your words! We are striving hard to make understanding algorithms easier. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like algorithm visualizations, learn together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@Saravanakumar-rn8fw
@Saravanakumar-rn8fw 8 жыл бұрын
solution is narrated in so simple and clear way.. Thanks for the video..!
@IDeserve
@IDeserve 8 жыл бұрын
+Saravana Kumar B Thanks a lot for your words! We are striving hard to make understanding algorithms easier. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. We hope you have already checked out our website: www.ideserve.co.in :) Thanks, -Team IDeserve.
@robertsedgewick1266
@robertsedgewick1266 4 жыл бұрын
Great explanation. Other channels also tried to cover the same approach, but your explanation and delivery w the apt use of visual illustration made it much easier to understand.
@IDeserve
@IDeserve 4 жыл бұрын
Thanks Robert!
@aayushit1513
@aayushit1513 3 жыл бұрын
Thank you so much! Your videos really help as they not only give the solution but also explain the intuition behind it!
@IDeserve
@IDeserve 3 жыл бұрын
Thanks Aayushi!
@vishalpolley3508
@vishalpolley3508 5 жыл бұрын
3:00 The algorithm step 2. c). should be table[i][j] = min (table[i-1][j], table[i-1][j-1], table[i][j-1]) + 1
@ShivamSingh-me1nb
@ShivamSingh-me1nb 4 жыл бұрын
Excellent explanation of this problem
@IDeserve
@IDeserve 4 жыл бұрын
Thanks Shivam!
@IDeserve
@IDeserve 8 жыл бұрын
Dear Friends, If you like our content and would like us to continue making great content for you, please spread the word about IDeserve. A share/appreciation from you on social network would mean the world to us! Also, do like our Facebook page: facebook.com/IDeserve.co.in :) Thanks, -Team IDeserve.
@abhishekjaiswal6492
@abhishekjaiswal6492 3 жыл бұрын
great explanation bhaiya, clear crystal explanation
@IDeserve
@IDeserve 3 жыл бұрын
Thanks Abhishek!
@Andrea-rq8yo
@Andrea-rq8yo 4 жыл бұрын
Really nice explaination!
@IDeserve
@IDeserve 4 жыл бұрын
Thanks Jun!
@saivasanth8819
@saivasanth8819 3 жыл бұрын
Best explaination, great work , thanks a ton :)
@IDeserve
@IDeserve 3 жыл бұрын
Thanks Sai!
@agniswarbakshi5765
@agniswarbakshi5765 8 жыл бұрын
Wonderful explanation with examples ! :) Would really appreciate if some software design questions are also discussed which are often asked in interviews !
@IDeserve
@IDeserve 8 жыл бұрын
Thanks a lot for your words Agniswar :) We are striving hard to make understanding algorithms easier. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like Algorithm Visualization, Learn Together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@kingshukjana4718
@kingshukjana4718 7 жыл бұрын
Videos are too good.. I dont find any other website having such great videos..
@IDeserve
@IDeserve 7 жыл бұрын
Thanks Kingshuk for your kind words :) If you would like to request a new video, here is the process: kzbin.info/www/bejne/aZe0fYKcqrKZopI We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Thanks, -Team IDeserve.
@prathyusharaman8392
@prathyusharaman8392 2 жыл бұрын
Tq sir you explained neatly....
@IDeserve
@IDeserve 2 жыл бұрын
Thanks Prathyusha!
@Aryan-wv6qe
@Aryan-wv6qe 7 жыл бұрын
Your explanations are really helpful for us. Please upload the videos of left problems which are there on your website.
@IDeserve
@IDeserve 7 жыл бұрын
Thanks Raj for your kind words :) Here is the process for requesting new videos: kzbin.info/www/bejne/aZe0fYKcqrKZopI We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Thanks, -Team IDeserve.
@surathsrivastva6727
@surathsrivastva6727 4 жыл бұрын
Keep on making new videos regularly .
@IDeserve
@IDeserve 8 жыл бұрын
+Naveen Marikar Thanks you so much for your kind words! We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. We hope you have already checked out our website: www.ideserve.co.in :) Thanks, -Team IDeserve.
@MrRastoginitin01
@MrRastoginitin01 8 жыл бұрын
very nice video...concept clearly explained...can we have more tutorials on Order Statistics?
@IDeserve
@IDeserve 8 жыл бұрын
+Nitin Rastogi Thanks a lot for your words! We are striving hard to make understanding algorithms easier. We will soon come up with tutorials on the requested topic and will intimate you. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like algorithm visualizations, learn together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@thatoneguy908
@thatoneguy908 5 жыл бұрын
at 3:06 it should be --> c: else table[i][j] = min(table[i - 1][j - 1], table[i - 1][j], table[i][j - 1]) + 1;, i got confused for much time!
@pranithakandimalla6359
@pranithakandimalla6359 3 жыл бұрын
Thanks a lot!!!
@reassume4826
@reassume4826 4 жыл бұрын
Thank You.
@saicharan8675
@saicharan8675 4 жыл бұрын
Dude thank you
@IDeserve
@IDeserve 4 жыл бұрын
Thanks Charan!
@11m0
@11m0 8 жыл бұрын
How did you know to take the min between all 3 numbers. What clued you into taking the minimum between all 3 and adding 1?
@PoonamYadav-dh6qz
@PoonamYadav-dh6qz 8 жыл бұрын
nice video, can you provide the solution for Maximum size rectangle matrix with all 1s as well?
@IDeserve
@IDeserve 8 жыл бұрын
+Poonam Yadav Thanks a lot for your words! As per your request, we will soon come up with an article on the requested problem. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like algorithm visualizations, learn together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@kamalsmusic
@kamalsmusic 8 жыл бұрын
How are we supposed to come up with this in a interview? It seems hard especially during a phone interview :(
@BullsEye2.0
@BullsEye2.0 8 жыл бұрын
It really helped.... excellent work... keep it up :)
@IDeserve
@IDeserve 8 жыл бұрын
Hello Father :D Thanks for your kind words :) We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Thanks, -Team IDeserve.
@shubhammishra3012
@shubhammishra3012 5 жыл бұрын
In else condition you have to do table[i][j]=min(table[i-1][j],table[i-1][j-1],table[i][j-1])+1
@JigarShah2811
@JigarShah2811 7 жыл бұрын
Great video!
@IDeserve
@IDeserve 7 жыл бұрын
Thanks Jigar for your kind words :) We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like Algorithm Visualization, Learn Together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@shubhamvardaan3576
@shubhamvardaan3576 8 жыл бұрын
Simply awesome .:):):):)
@IDeserve
@IDeserve 8 жыл бұрын
Thanks Shubham for your kind words :) We are striving hard to make understanding algorithms easier. We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like Algorithm Visualization, Learn Together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@vijaysahani1515
@vijaysahani1515 6 жыл бұрын
how to solve this problem with at most 1s ????
@tushargoel5522
@tushargoel5522 5 жыл бұрын
solution is fine but how do u approach this solution? I think that's more imp than the solution itself.
@cbest3678
@cbest3678 4 жыл бұрын
@Tushar Goel..I agree .. many people just put video content based on someones solution either in book or leetcode. .. they make video out of it.. without telling how the thought process started. Because thought process matters in interview and also help your brain develop in that direction....since today we know the solution for this problem if some other problem comes ... we will get hard time to come up with optimal solution.
@soumavanag5025
@soumavanag5025 7 жыл бұрын
Too good!! :)
@IDeserve
@IDeserve 7 жыл бұрын
Thanks Soumava for your kind words :) If you would like to request a new video, here is the process: kzbin.info/www/bejne/aZe0fYKcqrKZopI We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues. Also please check out our website at: www.ideserve.co.in It has features like Algorithm Visualization, Learn Together and many more coming soon. Please check it out and leave us a comment there! Thanks, -Team IDeserve.
@shibajipaul
@shibajipaul 5 жыл бұрын
at 2:52, the logic in 2, in the else part is wrong, it should not be table[i][j] = min(matrix[i-1][j], matrix[i-1][j-1], matrix[i][j-1]) + 1, but should be: table[i][j] = min(table[i-1][j], table[i-1][j-1], table[i][j-1]) + 1.
@JimitRupani
@JimitRupani 8 жыл бұрын
how value in the second matrix at (3,2) = 0 as you can apply min(three values)1 = value(3,2). when all those value are 0,0,1 so it should be 1.
@IDeserve
@IDeserve 8 жыл бұрын
+Jimit Rupani Could you please point out the exact time-stamp in the video where you have doubt?
@Wumbolo
@Wumbolo 8 жыл бұрын
those values are not 0,0,1. the values are of DP not matrix
@chandan9990
@chandan9990 5 жыл бұрын
wrong statement at 2:56 else table[i][j]=min(matrix[i - 1][j - 1], matrix[i - 1][j], matrix[i][j - 1]) + 1; correct one = else table[i][j] = min(table[i - 1][j - 1], table[i - 1][j], table[i][j - 1]) + 1;
Maximum Size Rectangle of All 1's Dynamic Programming
6:55
Tushar Roy - Coding Made Simple
Рет қаралды 181 М.
Maximum Sum Rectangular Submatrix in Matrix dynamic programming/2D kadane
13:54
Tushar Roy - Coding Made Simple
Рет қаралды 204 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 105 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 12 МЛН
Palindrome Partitioning Dynamic Programming
14:08
IDeserve
Рет қаралды 26 М.
Simple Explanation of the Birthday Paradox
12:11
Wrath of Math
Рет қаралды 58 М.
Maximum Sub Square Matrix Dynamic Programming
3:52
Tushar Roy - Coding Made Simple
Рет қаралды 107 М.
Turning set theory into the world's worst conlang
20:39
Random Andgit
Рет қаралды 39 М.
IPC: To Share Memory Or To Send Messages
14:15
Core Dumped
Рет қаралды 47 М.
Разоблачение: Почему это задание решают только 5% школьников на ЕГЭ!
31:19
EXtremum | Подготовка к ЕГЭ по Математике
Рет қаралды 11 М.
Serialize and Deserialize a Binary Tree
25:03
IDeserve
Рет қаралды 33 М.
Largest Subset With Consecutive Numbers
5:29
IDeserve
Рет қаралды 10 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 105 МЛН