sorry but very poor explaination i think i have to watch others
@adityayadav25688 күн бұрын
Great explanation and very simple code
@shreyaverma653817 күн бұрын
Thanks you made it easy.. its hell of a task to resume after a gap of 15 days at leetcode
@RohanPatil-gz6un28 күн бұрын
Kaha ho didi ap
@swarajpatil-pl2xu28 күн бұрын
bad time complexity
@ashishkulkarni2350Ай бұрын
Wow 🔥😍
@yashpaunikar671Ай бұрын
Better explanation for this question.✨✨
@think9543Ай бұрын
thanks 🙏
@akashghosh9335Ай бұрын
done thanks
@RohitMahanandi-ij4zpАй бұрын
Nice solution btw
@PriyankaKumari-zz4xyАй бұрын
Dp
@abhisheksinghdhangar6539Ай бұрын
nice explanation ma'am, i am little confused about subsequence but you just made it easy. So thank you
@ajitpalsingh606Ай бұрын
Why order is not preserved if we start from index 0.
@akashghosh9335Ай бұрын
Thanks for clear explanation Priyanshi , I everyday practise seeing your solution.
@amanmaurya7646Ай бұрын
how many if you watching the solution after getting blank to see this question. You don't even get how to write the recursion???
@shashankpatel96352 ай бұрын
Nicely explained 🔥
@shiveshsingh21102 ай бұрын
I watch other videos but not able to understand .Dry run part of DP clear all my doubts .Thanks for the explanation .
@amitkumarbehera9762 ай бұрын
Thank you for this crisp explanation🙂
@AnkitSingh-tm5dp2 ай бұрын
Nice explaination
@manishakamble74732 ай бұрын
Explanation 👌
@LearntoCodewithNayan2 ай бұрын
Great solution!
@LearntoCodewithNayan2 ай бұрын
Congratulations for 1K 🎉
@visheshjoshi68092 ай бұрын
Understood the concepts so well. Very helpful. Thank you ma'am 👍🏻
@242deepak2 ай бұрын
What is the proper logic/reasoning to the intuition that you told. Ideally if our strategy is to maximize the capacity usage of every boat (so as to minimize the number of boats), we should be greedy about using max weight with next max weight such that limit condition is satisfied. And indeed this approach gives correct answer but with O(n^2) solution. Not sure what is the proper reasing behind two pointer appoach.
@LearntoCodewithNayan2 ай бұрын
1k soon. 🎉
@preetu3912 ай бұрын
Yep 😁🚀
@musicalminute12872 ай бұрын
Somehow came across this video and iski wajah see I learnt the histogram question and this one. Thanks!
@pankajvishwakarma32462 ай бұрын
Great Explanation 💯💯
@preetu3912 ай бұрын
Thank you!
@rrnayak92512 ай бұрын
Hi sister, Can you please explain java solution along with your c++ solution ?
@preetu3912 ай бұрын
Sure in future I definitely will. Actually I don't code in Java that's the reason I don't, and immediately I will not because I am not much familiar with it, but I definitely have plans to do that.
@dayashankarlakhotia49432 ай бұрын
public int minOperations(int[]nums,int k){ for(int num:nums) k^=num; return Integer.bitCount (k); } 🎉❤
@pankajvishwakarma32462 ай бұрын
Great Explanation 💯💯
@preetu3912 ай бұрын
Thank you!
@preetu3912 ай бұрын
Sorry for the bad throat! 🙊
@UCSPathikDey2 ай бұрын
Amazing explanation
@Kauliflower-yl8te2 ай бұрын
Do you use some sort of stylus pen, I too upload Lc solutions but i use pen and paper lol
@preetu3912 ай бұрын
Yep I use pen tablet
@pankajvishwakarma32462 ай бұрын
Great Explanation 💯
@pankajvishwakarma32462 ай бұрын
Great Explanation 💯💯
@ayeshasultana55082 ай бұрын
Ur approach to solving problem good. But difficult to understand. Don't no whether it's speed or high level explanation or writing.. I wanted to learn from u. Hardly I can watch 1 mint bcz I won't understanding
@preetu3912 ай бұрын
Noted. Will try to improve on this
@yashkalia23112 ай бұрын
She has explained it really well!
@ayeshasultana55082 ай бұрын
Thank you@@preetu391
@kumarnishantnitallahabad1602 ай бұрын
Nice ..
@pankajvishwakarma32462 ай бұрын
Great Explanation 💯💯
@mohdkhaleeq74682 ай бұрын
good explanation what is the time and space complexity?
@maheshprasad25982 ай бұрын
Nice explaination
@LearntoCodewithNayan2 ай бұрын
Well explained!
@dayashankarlakhotia49432 ай бұрын
public int minFallingPathSum(int[][]grid){ int n=grid.length; for(int i=1;i<n;i++){ int p=0,min=grid[i-1][0],nmin=Integer.MAX_VALUE; for(int j=0;j<n;j++) if(grid[i-1][j]<min){ min=grid[i-1][j]; p=j; } for(int j=0;j<n;j++) if(j!=p&&grid[i-1][j]>=min&&grid[i-1][j]<nmin){ nmin=grid[i-1][j]; } for(int j=0;j<n;j++){ if(j!=p) grid[i][j]+=min; else grid[i][j]+=nmin; } } intvans=Integer.MAX_VALUE; for(int i=0;i<grid[0].length;i++) ans=Math.min(ans,grid[n-1][i]); return ans; } Tc=0(n*n); sc=0(1);