I really like your Dynamic Programming series. Helped me understand the algos, and without looking at your code, I was able to write the code myself, even with space optimization by using two rows. Thanks for the videos.
@KeertiPurswani4 жыл бұрын
That is awesome! 😇😇
@sarcastic55618 ай бұрын
best the way u just make us understand by dry running the crux of the questions its all what we need for any questions thankyou !!
@rapakavineethkumar54293 жыл бұрын
Excellent video, I solved this question before but never thought of this solution. I am watching all of your videos now.
@kannanparamasivam53314 жыл бұрын
Simple and clear explanation. Appreciate your effort!!!
@KeertiPurswani4 жыл бұрын
Thank you 😊 😊
@55_jyotirmaykar302 жыл бұрын
Excellent video ma'am. You are way more greater than I am capable of admiring.🙏🙏🙏🙏
@prashantgiri12853 жыл бұрын
Can I get a recursive approach?
@vibhu6133 жыл бұрын
great video ------tonnes of love didi
@AmanSingh-pq4rf11 ай бұрын
Great explanation
@vigneshhendrix44474 жыл бұрын
You just Nailed it !🔥 I got the logic now. Thank yu !
@KeertiPurswani4 жыл бұрын
Thank you 😊😊
@aniketpathak66234 жыл бұрын
Thanks for such clear explanation of the Algorithm. Please do continue this series of DP. 😊
@KeertiPurswani4 жыл бұрын
Thanks Aniket. Going to continue this series for sure :)
@tejasghone51184 жыл бұрын
Great explanation!! White board explanations really simplify things.
@KeertiPurswani4 жыл бұрын
Thank you 😊😊
@shankar76623 жыл бұрын
Nice Explanation!!
@KeertiPurswani3 жыл бұрын
Thank you! 😇
@_YaelRobert4 жыл бұрын
Thanks Keerti for the good explanations! Your efforts to help us in understanding DP are highly appreciated! Thanks a lot :) Your videos are getting better than before. Keep it up!!
@KeertiPurswani4 жыл бұрын
Thank you so much Yael :) means a lot!
@_YaelRobert4 жыл бұрын
@@KeertiPurswani Yup!!
@sanchitmehra10793 жыл бұрын
Very nice explanation :)
@manojjain35013 жыл бұрын
I liked as you It mean a lot to you. :) . Excellent explanation.
@KurtVanBever3 жыл бұрын
Very nice presentation and explanation 👍
@KeertiPurswani3 жыл бұрын
Thanks. Means a lot 😇😇
@laxman12252 жыл бұрын
Thanks for the wonderful explanation. How to come up with these ideas other than practice?
@suvai_kitchen3 жыл бұрын
Excellent video. at least i found a video who explains the intuition and logic of how solution works. Other videos just jump to solution and make us accept that. But what made you to think that the side of every square formed must be stored in another dp matrix? What brought you this thought?
@devprakash53203 жыл бұрын
Naice solution
@arnobchowdhury96414 жыл бұрын
Thanks a lot. Liked and Subscribed right when you said it means a lot to you.
@KeertiPurswani4 жыл бұрын
Thank you so much. It does ❤️
@yawar1103 жыл бұрын
what if we want to find the max sub metrics with all 0s instead?
@ashutoshjadhav4 жыл бұрын
Nicely explained ^_^
@KeertiPurswani4 жыл бұрын
Thanks Ashutosh :)
@makeupby.ananya3 жыл бұрын
How would we find which element of the dp table is our answer for the entire matrix? Like how would we get the answer as 3?
@ashpreetsinghanand72602 жыл бұрын
class Solution { public: int solve(vector &matrix, int i, int j, int &maxans, vector &dp){ if(i>=matrix.size() || j>=matrix[0].size()){ return 0; } if(dp[i][j]!=-1){ maxans = max(maxans, dp[i][j]*dp[i][j]); return dp[i][j]; } int diagonal = solve(matrix, i+1, j+1, maxans, dp); int right = solve(matrix, i, j+1, maxans, dp); int down = solve(matrix, i+1, j, maxans, dp); if(matrix[i][j]=='1'){ int ans = 1 + min(diagonal, min(right, down)); maxans = max(maxans, ans*ans); return dp[i][j] = ans; } else{ return dp[i][j] = 0; } } int maximalSquare(vector& matrix) { int a = matrix.size(); int b = matrix[0].size(); int maxans=0; vector dp(a+1, vector(b+1, -1)); solve(matrix, 0, 0, maxans, dp); return maxans; } };
@sukdebdasthakur67494 жыл бұрын
On which CTC?
@sakshibhalothia87704 жыл бұрын
Can you pls tell me why you're taking minimum when we have to find maximum?
@KeertiPurswani4 жыл бұрын
Because all the 3 values should be 1 to form a square, even if one isn't, then it won't be square so you take minimum Please try to go through the video once more. This is exactly what I tried to explain 😅
@sakshibhalothia87704 жыл бұрын
@@KeertiPurswaniGot it!!!😅 Thank you so much
@ChristForAll-143 Жыл бұрын
Hope i would have a girl friend like you, very good explanation Thank you
@sukdebdasthakur67494 жыл бұрын
On which company you are working? Please reply.
@KeertiPurswani4 жыл бұрын
Presently at Intuit. You can check on LinkedIn as well :)