The way to explain dp questions i haven't seen anyone on whole youtube breaking the dp questions in that way really your channel helped me a lot understanding dp easily. Thanks a lot !
@saivignesh032 ай бұрын
theory-->Great explanation sir feedback--> Explain code more clearly 🤗🤗
@andrejiskra339111 ай бұрын
I think you structured your video very very well and explained the concepts and solutions perfectly. Timestamps were also very helpful. Thank you for creating this.
@nikoo2811 ай бұрын
glad you feel that way
@kunalkheeva Жыл бұрын
Appreciate your work! Most underrated channel though! Keep posting.
@nikoo28 Жыл бұрын
fingers crossed :)
@rohitrawat40552 ай бұрын
Thanks Sir , itni video's baad isme samjh aaya ....
@manojtate96048 ай бұрын
Your explanation was top-notch !
@taffazzelhossain4530Ай бұрын
great explanation !!
@mohammedilyas88242 жыл бұрын
Great explanation sir,pls bring on some most tricky interview questions frequently asked
@nikoo282 жыл бұрын
Sure…i am adding new problems every week :)
@MD_SAMEER___4 ай бұрын
thank you so much man! you explained so well
@vivekkumaryadav9862 Жыл бұрын
the way that u explain with example it help a lot to understand thanks sir
@nikoo28 Жыл бұрын
that is so nice of you
@saikiran14265 ай бұрын
Super explanation 😊
@unemployedcse35147 ай бұрын
one vedio explains gist of dynamic programming and other concepts , thank you 😍
@ssss22144Ай бұрын
Thank you annaa❤
@ganeshpatel3985 Жыл бұрын
love the way you teach
@AkashYadav-di6kd Жыл бұрын
Thank you very much, bhaiya.
@mdshariorhossainfarhan2819Ай бұрын
I was just curious and wanted to know if recursive approach would provide a better solution to this problem for bottom up approach
@032_RishavDey10 ай бұрын
Sir we can optimise the Space Complexity to O(N)
@nikoo2810 ай бұрын
what will your approach be?
@032_RishavDey10 ай бұрын
@@nikoo28 just have one dp array of size equal to N, and initialise it with values in last row. Then perform bottom up approach. So our answer is in dp of 0.
@nikoo2810 ай бұрын
@@032_RishavDey that is indeed smart.. 😄
@saikiran14265 ай бұрын
How
@alirezaaramoun6155 ай бұрын
I would like to know how the top-bottom approach can be applied. I attempted to apply it but ran into difficulties. Could someone please assist me?
@leetcodebaby66802 жыл бұрын
When you were explaining the problem, you left explaining after 2 rows when things really started becoming tricky. You left at the point when it was most needed.
@nikoo282 жыл бұрын
I discuss 2 approaches in the solution, a top-down and a bottom-up approach. Does that help? Can you tell me the timestamp at which you struggled? I can help more.
@vivekkumaryadav9862 Жыл бұрын
TC -> O(n^2) S.C -> O(n^2)
@happyVibesOnly1618Ай бұрын
Brut force had better space complexity. public class TriangleMinPathSum { public int minimumTotal(List triangle) { return helper(triangle, 0, 0); } // Recursive helper method to find the minimum path sum private int helper(List triangle, int row, int col) { // Base case: if we reach the last row if (row == triangle.size() - 1) { return triangle.get(row).get(col); } // Recur to find the minimum path sum from the left and right children int leftPath = helper(triangle, row + 1, col); int rightPath = helper(triangle, row + 1, col + 1); // Current element + minimum of both paths return triangle.get(row).get(col) + Math.min(leftPath, rightPath); } }