kya hi explanation haiiiii. Mene khud karlia code Superb explanation................
@lofireverbz-wy7go10 ай бұрын
bhaiya seriously lots of love for your hardwork in making video❣❣
@codestorywithMIK10 ай бұрын
Means a lot
@md.tamaltahasinkhan644810 ай бұрын
You have named the channel perfectly. You are a true story teller. I enjoy each and every videos of your channel as like reading my favourite novel. ❤
@codestorywithMIK10 ай бұрын
Means a lot 😇❤️🙏
@DevOpskagyaan10 ай бұрын
You are the best DSA tutor in entire KZbin. Most underrated
@sauravchandra103 ай бұрын
I could never have thought of this approach. Thanks ❤
@nishantchoudhary423010 ай бұрын
coding love h bhaiya because of you...
@codestorywithMIK10 ай бұрын
😇🙏🙏❤️
@aws_handles10 ай бұрын
Top notch ⭐️ Didn’t find any good video/article which explained this approach like this. You are unique
@divyadahiya91614 ай бұрын
Mja aagya intna acha samjhaya hai ❤❤
@akagi93710 ай бұрын
Again I said in the first video earlier , the way you explain makes it easy to think and grasp the concept
@codestorywithMIK10 ай бұрын
🙏🙏
@harshittyagi9115 ай бұрын
maza aa gaya bhai... thank you soo much
@gui-codes6 ай бұрын
big fan yaar. love your explanations.
@yatharthgupta64689 ай бұрын
Brilliant solution and very well explained Thanks
@prateekgirilateralentry586510 ай бұрын
Amazing explanation! Mja Aa gya Sir And Thanks sir for daily motivation Day : 55 streak continues 😃
@codingdev41969 ай бұрын
Bhai you are just too good 🔥 Best explanation dete ho bhai aap Great work 😊
@codestorywithMIK9 ай бұрын
Thank you so much 😀
@cooldude032110 ай бұрын
Thank you sir for your hardwork and dedication,it helps us a lott!!!!🙏🙏🙏🙏
@Whirlwind0310 ай бұрын
MIK bhai top notch explanation, Please start LLD lectures as well🙏
@phoenix181410 ай бұрын
love u brotha ur way of explaining is superb!
@codestorywithMIK10 ай бұрын
Thank you so much 😀
@DevOpskagyaan10 ай бұрын
You are a magician ❤
@souravjoshi229310 ай бұрын
Superb explanation. Hats off
@anuppatankar429410 ай бұрын
Great video 👌🏻
@codestorywithMIK10 ай бұрын
❤️😇
@wearevacationuncoverers10 ай бұрын
Was waiting eagerly for this ❣
@u_NIK_10 ай бұрын
Best explanation brother. Keep it up.
@codestorywithMIK10 ай бұрын
🙏🙏❤️❤️
@gauravbanerjee289810 ай бұрын
Thanks a lot bhaiya fr the top notch explanation ❤🔥
@codestorywithMIK10 ай бұрын
Always welcome 🙏
@ashyy34610 ай бұрын
this is fab fab
@codestorywithMIK10 ай бұрын
🙏🙏
@knowsbetter411310 ай бұрын
🎉🎉
@atmanirbharofficialindiaon278910 ай бұрын
Hey plsss tell the ques u mentioned in the video similar to this one and link also of leetcode for that ques i want to test my skills after understanding of this ques
@codestorywithMIK10 ай бұрын
Aha my bad, The question was asked in Meta Coding Round (Pen and Paper) : Write a program which can take input root of a binary tree and a target value. It should find the farthest leaf distance from the target value. This problem (video) is nothing but the same Qn but with twisted words.
@movieShorts-nv1uf10 ай бұрын
2977. Minimum Cost to Convert String II . Vai plz make a vedio on this problem . Actually stuck on this problem . It's like to much hard to go . Please explain it and make a vedio .
@jambajuice0710 ай бұрын
bhaiya can u please also do solutions of upcoming leetcode contest (Q3 and Q4) atleast also Q4 of recent contests
@codestorywithMIK10 ай бұрын
I recently posted Qn-4 of Sunday contest. You can find it in my playlist - kzbin.info/www/bejne/iYixenqXhNWJZrc
@RajSingh-te1uo10 ай бұрын
are u going to make video on today's gfg potd?
@codestorywithMIK10 ай бұрын
Hi Raj, Actually a very similar Qn video is already there in my playlist. Using that same concept you can solve this also. Let me share the code and the video too. /* NOTE - Using same concept as Leetcode 974. Subarray Sums Divisible by K Video - kzbin.info/www/bejne/bYnIoKWYbJdkgrM */ /****************************************************** C++ *************************************************************/ //T.C : O(n) //S.C : O(n) class Solution{ public: int longSubarrWthSumDivByK(int nums[], int n, int k) { unordered_map mp; int sum = 0; mp[0] = -1; int result = 0; for(int i = 0; i
@RajSingh-te1uo10 ай бұрын
@@codestorywithMIK thank you sir ♥️
@YashSinghal10 ай бұрын
very interesting approach explained so well 🫡🫡
@codestorywithMIK10 ай бұрын
🙏🙏❤️❤️
@abhishekrai310 ай бұрын
bhaiya, es question ko (3002. Maximum Size of a Set After Removals) kr denge plz, samjh nhi aa rha hai.
@ashyy34610 ай бұрын
sir, one doubt, can't we convert the tree into undirected graph and then use dfs, like why and why not ? Please tell
@shashanksaxena669910 ай бұрын
he already made video on this which was the first approach and this is the second approach. check the video section of his channel
@ashyy34610 ай бұрын
@@shashanksaxena6699 it was with bfs right? Like I was asking for dfs but I think I should watch it again. Thanks 👍🏻
@shashanksaxena669910 ай бұрын
@@ashyy346 yes it was with bfs...you can try DFS also
@harshtiwari41610 ай бұрын
bhaisahab aap famous question variation ko mention krna bhul gye. kripya krde vo bhi solve krlenge
@codestorywithMIK10 ай бұрын
Aha my bad, The question was asked in Meta Coding Round (Pen and Paper) : Write a program which can take input root of a binary tree and a target value. It should find the farthest leaf distance from the target value. This problem (video) is nothing but the same Qn but with twisted words.
@shivanshupandey110610 ай бұрын
Bhaiya java me bhi code kiya karu ..... It will help us lot
@sachinnarang245310 ай бұрын
class Solution { private int ans = Integer.MIN_VALUE; private int dfs(TreeNode root, int start){ if(root==null) return 0; int left = dfs(root.left,start); int right = dfs(root.right,start); if(root.val==start){ int distance = Math.max(left,right); ans = Math.max(distance,ans); // ya toh ye wala diff max hoga return -1; } else if(left>=0 && right>=0) return 1+Math.max(left,right); else{ int distance=Math.abs(left)+Math.abs(right); ans = Math.max(distance,ans); //Ya toh ye diff max hoga return -1+Math.min(left,right); } } public int amountOfTime(TreeNode root, int start) { dfs(root,start); return ans; } }
@shivanshupandey110610 ай бұрын
@@sachinnarang2453 thanks bhai 😇
@codestorywithMIK10 ай бұрын
Actually, i always put JAVA code in the same GitHub link in the description. Hope that helps. Thank you sachin for the Java code 😇❤️🙏
@ManojKrVerma-vw4dx10 ай бұрын
Do baar dekhna pada
@dayashankarlakhotia494310 ай бұрын
i have solved this problem from your guidance 🙏 please make video on leetcode biweekly challenge. digits dp🎉❤