Kunal broke the "hard" question myth.. I solved that question before watching the answer and I was like "very simple stuff" .. Thank you Kunal for the effort you put into creating this bootcamp. I appreciate it 🙏
@@balibhadrasingh6730 Bro, cyclic sort will work if array contains 0 to N elements , means if arr.length = 4, it should have 0 to 4 but in any order, so you sort and find out which element is missing, it will not work for random numbers in an array
When he says " you will solve like this like this.. this is nothing . this course is more than enough to crack Amazon etc etc " I feel more confident 😭😭😭. Your real teacher ..huge respect to u .. 🌺
I purchased the geeks for geeks dsa self paced course .. that course is good but yrr this is gem i have started following ur course and just using this knowledge to solve questions there... Wish u came early my 3000 rs would be saved😔😌 please don't stop posting
Hey @Rakib Mondal I was also thinking of buying the complete interview preparation course from geeks for geeks. After your experience with them what do you recommend?
Before watching this video I almost solved all the problems which Kunal solves here by using the intuition method but after this video, I optimized them with the Cycle Sort algorithm and the time and space complexities have improved. Thanks for the hard work and your dedication.
i never commented on any DSA video but after watching this video............the only one dialouge comes in mind ..... Jahanpanah! Tussi great ho…Tohfa kabool karo!....jai ho
I have watched lots of DSA videos on youtube but No one can give logic building like this and littery I am very thankful to my friend who suggested me this playlist
I just wanted to personally thank you for the incredible work you’re doing on TH-cam. Your DSA playlist has been a game-changer for me, and I’m sure for many others. Your way of explaining complex topics in such a simple and engaging manner is truly impressive. I’ve recommended your channel to many people who are struggling with DSA. Thanks again for all your efforts - you’re making a real difference!
There's no single day.. When he doesn't uploads any video.. Hats off to the great work bro.. Just love the way you explain things in the most simplistic way.. Thank you.. ❤
For the first time I was able to solve a Leetcode question and that too without taking a hint or looking at the solution/explanation. It felt amazing. This playlist is nothing short of amazing.
you are absolute a true gem. No course does the explanation as good as you. Please continue to teach concepts like this and then one day when it reaches to every student, India would be the next silicon valley with all the gems into it
THIS IS BEST JAVA COURSE TILL DATE ,understood all the concepts taught , Was able to solve a medium question from assignments soooo easily! Rather than jumping on to complex solutions go for this video it has helped me a lot to build logic to solve questions.
After you explained the sorting algorithm the questions felt so easy even the leetcode hard as you said were not at all tough, thank you for making DSA easy for us Kunal bhai!🙌
I have solved medium question in 5 min I only change this for (index in nums.indices){ if (nums[index] != index+1){ return nums[index] } } . Thank you kunal sir
I have a simple solution to Q1 Missing Number but it doesn't use the Cyclic sort algorithm. Since you know N you can use the formula N*(N+1)/2 to get the sum if the array would contain the missing number, than just sum up the given array and subtract them. Also would like to thank Kunal for amazing course so far! Enjoying it really :)
Even I had similar thinking. But if the missing numbers are more than 1, this approach won't work. Whereas cyclic sort approach works very well in all conditions!
Today I was solving one leetcode medium question, and after thinking for 10 seconds, I found that I have to just copy-paste insertion sort algorithm 😂 + no changes required. Literally hauwa bana rkha h Thank you Kunal For bringing this high quality content for free ❤️
@@AdritoDey create a vector of pairs with first as array value, second as index. Now just sort this array according to first value. Now u just have to take every index value to its original position using swaps, that's what we do in cycle sort.
Thank you for your efforts Kunal. I haven't seen a video where people go through each iteration in a loop with patience just to explain how it is working and most of them won't even type the code in live and they just give the code at the end after explaining the algorithm. I hope you complete this when you get time. I have seen every in this playlist even if I know the fundamentals because you covered some topics I forgot and missed when I learnt the basics. I graduated in 2019 and I am currently working in a mass hiring company for sh*t salary and I am trying to make the shift. This bootcamp is really amazing and I know you know that too. Please complete when you have time. Thank you.
today I completed previous assignments.Really enjoying doing practice after theory. Thank you so much for making such a grt content and providing questions for practice after theory.
Hey nidhi , I am also following Kunal bhaiya but I am getting some problems and unable to solve some assignment questions so how did you managed with this issue ?
Hey guys can we have a small group, so we can interact with each other regarding doubts and any conceptual take away ? Discord community is great but if we will have a smaller group i think it will be more beneficial as we are at the same point know. Will love to here your opinion on this 🙌
i have watched lots of DSA videos on youtube but NO one can give logic bilding like this and littery i am very thankful to my friend who suggested me this play list
Kunal, your teaching has been absolutely outstanding. I watched your explanation of the Cycle Sort algorithm from the beginning and, remarkably, I was able to solve all the questions without watching the LeetCode answers. Your guidance and support have been invaluable. Thank you for your exceptional teaching!
Great learning platform that i ever seen 🎉😊.....you are really brilliant 😍 one of the best playlist for DSA.I really like your all contents..... Thank you so much ❤️🎉❤
These questions, asked in the companies so that they understand the thought process of candidates, because these question can be solved in multiple ways. 1. Take empty array of size = N+1, then insert all the values and count non-zero values. [Extra space] public int missingNumber(int[] nums) { int n = nums.length; int[] find = new int[n + 1]; for (int i = 0; i < n; i++) { find[nums[i]]++; } for (int i = 0; i
Literally i am falling in love💕💕💕 with your teaching skills and approaches you are showing to solve a problem. Though I am from non-IT background, working in IT but always very curious about coding with self learning. Your explanation is easily understandable by a non IT candidate too. Keep up the good work. Hope to see much more videos on the various cutting edge technologies going forward. You are helping people👏👏👏👏 rather doing videos for views/monetary benefit. Keep sharing your knowledge. Because it is the most prestigious thing one can do without any selfishness. Thanks
i will say only one this to the students who are preparing for job .here are you at best place watch all videos .you get your goal.dont miss anything .i search for 1 month n finally found a gem of videos.love from kashmirrrrrrrrrrr
I literally give up for coding i think i m not made for coding but ur video and motivation fully motivated me now i my self search for the hard level questions and solve it by my self thank you kunal.....u literally provide free course for which many websites ask for the charges and also don't give full explanation.
I just wrote the program after listening to your theory explaination, Kunal. Started learning from Java syntax in the beginning to writing program just by looking theory. Kunal made the best course.
I solved "find-all-numbers-disappeared-in-an-array" by myself when Kunal said "Pause the video and try yourself" Thanks Kunal, I really appreciate your teaching skills!
I watched the working of cyclic sort and solved every question mentioned in the video myself. After solving that one hard question cyclic sort became crystal clear to me. Thanks Man!!!❤❤
Great Man :) I have been consistently doing leetcode for more than 40 days now, but still this one is quite new and very interesting for me. Keep up the good work :)
now the chances of getting on-campus placement seems to be easy for me, as your every video gives me that confidence. thank you so much for such a great content.
Nice work @kunal, not only upcoming college grads but it's helping experienced one like me in clearing my basics(ps: working as R&D Engineer in a leading MNC)
You are great! I watched many DSA videos, but your approach is different because you explain questions by recognizing patterns. Thank you again for these videos!
Just finished the previous assignment today and was thinking when the next video will come and then your notification popped up , man you are hearing mind or what❤️
@@mehandiWithPrity hey can u write the questions which you got stuck and regarding me I was doing the questions given by Kunal as well as some prblms in that specific topic on hackerrank
I am a BCA student and I never thought I can solve this type of questions but after watching your bootcamp JAVA&DSA my reaction to FAANGM, u're kidding me you asked so easy questions in your Coding Interview now I am also able to solve those problems So Thankyou Kunal Bhaiya or Sir because You have all the qualities and again Thank you for giving us valuable knowledge Thankyou
I solved the last 3 questions by myself. The difference is getting the logic. Hard questions are not hard, they are based on easy, it just requires that one single condition or line which solve the hard question. Ab hard questions ka darr nahi he. Thanks kunal.
i call today one of the best days of my life because after seeing two questions solved by kunal I was able to do all the problems. thank for the good work you are doing.
//this code will be helpfull to understand the algorithm in an efficient way //great work kunal anna class Main { static void cyclicSort(int[] nums) { int i=0; while(i
love Kunal rather than girls the course which he taught are life savers, which do not realize most of guys, I never find this type of teaching technique, I am so grateful and thankful to you kunal
Let me tell you some thing very honestly.. The way kunal teaches no one can.. I have watched many videos regarding but this is the best u can can from, no one can come even close....
I did Q3 in little bit different by using previous method Q3: Duplicate number Input: a[ ]={3,4,1,2,2} First sort by cyclic sort Then it becomes a[ ]={1,2,3,4,2} Then Sop(a.length-1) Tq you kunal
This course is so much better that every other course, It is like I am getting a therapy and also getting educated, the satisfaction on completing the question on my own is the best feeling. Thankyou so much.
Constraints aside, he's showing how you can apply this algorithm to this problem. Then when the interviewer would ask to do it without modification, you have to move to another approach. For that you can watch Striver's video for this problem.
hey kunal this video is really a magic first time i solved leetcode medium question i really trusted you when i start watching your sorting video till now i didnt forget the code i remeber the whole approach that is the power of your teaching style thank you so much i bought so many dsa paid courses none of that courses matched your free dsa bootcamp thank you so much please complete the other concepts also i understad the concepts only when you teach that concept.pleaseeee
Thank you so much, Kunal! Your explanation of Cyclic Sort was incredibly clear and easy to follow. Today, I solved problems on my own and I’m feeling more confident than ever! Your teaching style has truly made a difference in my learning journey. Keep up the amazing work - I’m excited to continue learning from you! Love you! 💖✨
hey Kunal your videos are great I can solve medium to hard-level questions of LeetCode 🥰, but the playlist is incomplete can you please provide the remaining topics such as DP, trees, and graphs it really helpful if you continue this playlist🥺.
Thanku bhaiya my cyclic sort algo is cleared because of you. you taught it so good. i literally solved every problem because you cleared my every doubt about cyclic sort. Again thank you Aise hi or hard topic ko easy bnate rho
I used to struggle with even leetcode easy questions, but now I literally solved leetcode hard in just some a couple of minutes all by myself without looking to the solution. This guy is amazing ❤
I literally solved 2nd question(google question) on my own.when he told these are the questions standard that they ask in faang coding rounds ,i swear my confidence lvl went to peaks.I wish what he told was true,coz i feel i can make it if i work a bit more hard.thank u so much kunal bhai,ur srsly OP.
best teaching video for coding , till then i have watched numerous channels but because of u i am now able to understand how to actually do it . a hearty thanks brother
DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html
When Kunal say " ase he haua bna rakha hai" It motivates at another level
In my life , this was the first time I did medium level question in just 1 minute . great videos .
Excellent!
same bro
Important Time Stamps for Future Revision
4:05
11:10
16:30
Kunal broke the "hard" question myth.. I solved that question before watching the answer and I was like "very simple stuff" .. Thank you Kunal for the effort you put into creating this bootcamp. I appreciate it 🙏
solving that hard leetcode problem by myself without seeing the solution was really motivating! Thanks for these videos!
Great to hear!
@@balibhadrasingh6730 Bro, cyclic sort will work if array contains 0 to N elements , means if arr.length = 4, it should have 0 to 4 but in any order, so you sort and find out which element is missing, it will not work for random numbers in an array
@@arjunnarayanasamy6317 bro, did he covered Tree BFS, Graph BFS, Tree DFS, Graph DFS and Heap concepts in this Bootcamp?
@@manjindersingh8677 nope
@@manjindersingh8677 Not yet...Tree Data Structure is pending
Dekho ek question, solve baaki ke apne aap!
Watch one, solve all!
Thank you Kunal for making it so easy for us to understand! Kudos!
Yes
When he says " you will solve like this like this.. this is nothing . this course is more than enough to crack Amazon etc etc " I feel more confident 😭😭😭. Your real teacher ..huge respect to u .. 🌺
where did you reach?
hahaha love Kunal's vibes
I like how Kunal focuses more on the logic and writing the code becomes much more natural due to that.GOAT teacher FR!!!!!!!!!!
I purchased the geeks for geeks dsa self paced course .. that course is good but yrr this is gem i have started following ur course and just using this knowledge to solve questions there... Wish u came early my 3000 rs would be saved😔😌 please don't stop posting
Hey @Rakib Mondal I was also thinking of buying the complete interview preparation course from geeks for geeks. After your experience with them what do you recommend?
Same bro..i also did same
@@intellectualsrestroom2001 Don't take that
same .. i did the same. and after left it in the middle
Have anyone purchase an Interview Preparation Course from Coding Ninja?
Before watching this video I almost solved all the problems which Kunal solves here by using the intuition method but after this video, I optimized them with the Cycle Sort algorithm and the time and space complexities have improved. Thanks for the hard work and your dedication.
i never commented on any DSA video but after watching this video............the only one dialouge comes in mind .....
Jahanpanah! Tussi great ho…Tohfa kabool karo!....jai ho
I have watched lots of DSA videos on youtube but No one can give logic building like this and littery I am very thankful to my friend who suggested me this playlist
I am not believe myself that after this video solved 2 hard leetcode questions.
Thank you soo much for shocked me
Keep up the good work!
@@KunalKushwaha i m bca student can i apply for google or any other faang ?
I just wanted to personally thank you for the incredible work you’re doing on TH-cam. Your DSA playlist has been a game-changer for me, and I’m sure for many others. Your way of explaining complex topics in such a simple and engaging manner is truly impressive. I’ve recommended your channel to many people who are struggling with DSA.
Thanks again for all your efforts - you’re making a real difference!
There's no single day.. When he doesn't uploads any video..
Hats off to the great work bro..
Just love the way you explain things in the most simplistic way..
Thank you.. ❤
Thank you 🙌
@@KunalKushwaha which book do u prefer for java??
@@KunalKushwaha Your explaination is far better than others. I am not writing this for any comparison but fact is fact. Noone can deny it.
in Q2 if im swapping the elements inside while loop instead of creating a separate function for swap, it is showing TLE.....why?
Really?
Kunal introduced me with the cyclic sort n i beated all the questions by myself.
Great work bhai.
Its all your hard work
Now. I am able to solve the questions just by seeing the question explanation and understanding the pattern. Thank you Kunal Bhai for these videos.
Tumahara college name and where are you from?
bhai konsi company me lagi
For the first time I was able to solve a Leetcode question and that too without taking a hint or looking at the solution/explanation. It felt amazing. This playlist is nothing short of amazing.
last question was like " jo dikhta hain woh hota nahin aur jo hota hain woh dikhta nahin" . Superb session.loved it.
you are absolute a true gem. No course does the explanation as good as you. Please continue to teach concepts like this and then one day when it reaches to every student, India would be the next silicon valley with all the gems into it
THIS IS BEST JAVA COURSE TILL DATE ,understood all the concepts taught , Was able to solve a medium question from assignments soooo easily! Rather than jumping on to complex solutions go for this video it has helped me a lot to build logic to solve questions.
You are most welcome
at 14:28 the confidence you gave time by time is really like no one encourage like this in their videos, lots of love.
After you explained the sorting algorithm the questions felt so easy even the leetcode hard as you said were not at all tough, thank you for making DSA easy for us Kunal bhai!🙌
Great to hear!
in Q2 if im swapping the elements inside while loop instead of creating a separate function for swap, it is showing TLE.....why?
@@nikhilnaidu1383, I also did inside while loop, and it works fine, check again if you are doing something wrong
@@nikhilnaidu1383 did u do i++?
@@KunalKushwaha can you kindly do videos on dp, graph, trees and complete the video :")
I have solved medium question in 5 min I only change this
for (index in nums.indices){
if (nums[index] != index+1){
return nums[index]
}
} .
Thank you kunal sir
The best way to teach something is getting clarity in a concept and doing 5-6 similar questions to reinforce it. This course does that. Great!!!
Glad it was helpful!
in Q2 if im swapping the elements inside while loop instead of creating a separate function for swap, it is showing TLE.....why?
cyclic sort is not working for arr[] = {20,10,6,18,17,33}, how it will work for this array acoording to kunal shah concept
do you know
@@balibhadrasingh6730 Cyclic sort only works for 0 to N element
@@balibhadrasingh6730 it works only in the range of 0 to N or 1 to N, your array doesn't have elements in b/w that pattern
I have a simple solution to Q1 Missing Number but it doesn't use the Cyclic sort algorithm. Since you know N you can use the formula N*(N+1)/2 to get the sum if the array would contain the missing number, than just sum up the given array and subtract them.
Also would like to thank Kunal for amazing course so far! Enjoying it really :)
That is a very interesting solution. Thank you
Even I had similar thinking. But if the missing numbers are more than 1, this approach won't work. Whereas cyclic sort approach works very well in all conditions!
Binary search is good
@@KRiSH-ei6fy there will be only one missing number since the array size is N. But in some other cases like duplicates question cyclic is best.
int size = nums.length;
int total = size * (size + 1) / 2;
int sum = 0;
for (int n : nums) {
sum += n;
}
return total - sum;
Today I was solving one leetcode medium question, and after thinking for 10 seconds, I found that I have to just copy-paste insertion sort algorithm 😂 + no changes required. Literally hauwa bana rkha h
Thank you Kunal For bringing this high quality content for free ❤️
Leetcode kya hai?
I am a beginner or will begin soon after joining college.
Your college name please and your subject?
@@VivekSingh-xk5rk hi
@@VivekSingh-xk5rk leetcode is a library of coding questions based on Data structures and algorithms.
"Minimum swaps to sort an array of distinct elements"
Solved this one also using cycle sort. This question is great one, everyone must try it
Hey can you share your code for this question?
I couldn't come up with a O(n) time and constant space solution!
@@AdritoDey create a vector of pairs with first as array value, second as index. Now just sort this array according to first value. Now u just have to take every index value to its original position using swaps, that's what we do in cycle sort.
Yeah
Thank you for your efforts Kunal. I haven't seen a video where people go through each iteration in a loop with patience just to explain how it is working and most of them won't even type the code in live and they just give the code at the end after explaining the algorithm. I hope you complete this when you get time. I have seen every in this playlist even if I know the fundamentals because you covered some topics I forgot and missed when I learnt the basics. I graduated in 2019 and I am currently working in a mass hiring company for sh*t salary and I am trying to make the shift. This bootcamp is really amazing and I know you know that too. Please complete when you have time. Thank you.
today I completed previous assignments.Really enjoying doing practice after theory. Thank you so much for making such a grt content and providing questions for practice after theory.
Hey nidhi , I am also following Kunal bhaiya but I am getting some problems and unable to solve some assignment questions so how did you managed with this issue ?
@@lokesh5371 same problem here I am not able to solve assignment question. They use other data structures and algorithms to solve those questions.
@@cdrrjt I hope Kunal bhaiya reply to this :)
@@lokesh5371 I am also getting stucked in 4-5 problems even not solved yet,add those problems to your list and try it after some time with fresh mind.
Hey guys can we have a small group, so we can interact with each other regarding doubts and any conceptual take away ? Discord community is great but if we will have a smaller group i think it will be more beneficial as we are at the same point know. Will love to here your opinion on this 🙌
Thank you bro for uploading such an awesome content, it will help many students who didn't afford to buy the expensive courses to study.
So nice of you
i have watched lots of DSA videos on youtube but NO one can give logic bilding like this and littery i am very thankful to my friend who suggested me this play list
at 52:30 , the question wants us to solve the problem without changing the array. But why does he use cycle sort then, it changes the arr. ????
I also had the same doubt ?
exactly, neetcode has the right solution on his channel, using tortoise and hare algo
Kunal, your teaching has been absolutely outstanding. I watched your explanation of the Cycle Sort algorithm from the beginning and, remarkably, I was able to solve all the questions without watching the LeetCode answers. Your guidance and support have been invaluable. Thank you for your exceptional teaching!
Thanks for this course. It's really the best course I've seen so far.
I have been following your content from over a month now. Really have enjoyed your teaching style.
Cool, thanks!
Great learning platform that i ever seen 🎉😊.....you are really brilliant 😍 one of the best playlist for DSA.I really like your all contents..... Thank you so much ❤️🎉❤
These questions, asked in the companies so that they understand the thought process of candidates, because these question can be solved in multiple ways.
1. Take empty array of size = N+1, then insert all the values and count non-zero values. [Extra space]
public int missingNumber(int[] nums) {
int n = nums.length;
int[] find = new int[n + 1];
for (int i = 0; i < n; i++) {
find[nums[i]]++;
}
for (int i = 0; i
wow i just solved questions within 10 seconds with your way KUNAL !!!
Literally i am falling in love💕💕💕 with your teaching skills and approaches you are showing to solve a problem. Though I am from non-IT background, working in IT but always very curious about coding with self learning. Your explanation is easily understandable by a non IT candidate too. Keep up the good work. Hope to see much more videos on the various cutting edge technologies going forward. You are helping people👏👏👏👏 rather doing videos for views/monetary benefit. Keep sharing your knowledge. Because it is the most prestigious thing one can do without any selfishness. Thanks
I just love how this guy has burst the FANG bubble. Freshers really needed to know this.
This is literally a gold mine! I code my solutions in python and these are helping me immensely. Keep up the good work!
Great to hear!
Your comment made my day.
in Q2 if im swapping the elements inside while loop instead of creating a separate function for swap, it is showing TLE.....why?
cyclic sort is not working for arr[] = {20,10,6,18,17,33}, how it will work for this array acoording to kunal shah concept
do you know
i will say only one this to the students who are preparing for job .here are you at best place watch all videos .you get your goal.dont miss anything .i search for 1 month n finally found a gem of videos.love from kashmirrrrrrrrrrr
Thanks a lot for this video .Was able to code every single question on my own .Undoubtedly the best DSA bootcamp .🙌🙌
Most welcome!
I literally give up for coding i think i m not made for coding but ur video and motivation fully motivated me now i my self search for the hard level questions and solve it by my self thank you kunal.....u literally provide free course for which many websites ask for the charges and also don't give full explanation.
The way you have been explained is phenomenal! Keep going brother :)
Glad to hear that
I just wrote the program after listening to your theory explaination, Kunal.
Started learning from Java syntax in the beginning to writing program just by looking theory.
Kunal made the best course.
As always Awesome 💞
Actually this is the best DSA course ever in TH-cam ❤️
Thank u Kunal 🙏
I solved "find-all-numbers-disappeared-in-an-array" by myself when Kunal said "Pause the video and try yourself"
Thanks Kunal, I really appreciate your teaching skills!
It feels nice to solve problems of cyclic and the way you teach is awesome . This course is addictive/habit forming for solving problems.
Yes bro. Absolutely true
I watched the working of cyclic sort and solved every question mentioned in the video myself. After solving that one hard question cyclic sort became crystal clear to me. Thanks Man!!!❤❤
Great Man :)
I have been consistently doing leetcode for more than 40 days now, but still this one is quite new and very interesting for me. Keep up the good work :)
Keep it up
now the chances of getting on-campus placement seems to be easy for me, as your every video gives me that confidence. thank you so much for such a great content.
Nice work @kunal, not only upcoming college grads but it's helping experienced one like me in clearing my basics(ps: working as R&D Engineer in a leading MNC)
Glad to hear that!
Hitachi?
You are great! I watched many DSA videos, but your approach is different because you explain questions by recognizing patterns. Thank you again for these videos!
Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!
should be a high request. without having proper knowledge of each concepts how u suppose to crack interview.
You are just not teaching. You also increase the confidence of students and motivate us.
Just finished the previous assignment today and was thinking when the next video will come and then your notification popped up , man you are hearing mind or what❤️
Bhaiya... I got stuck in many problems while solving... How do u manage all the problem!?
Have u solved all the prblms or some good questios only!?
@@mehandiWithPrity hey can u write the questions which you got stuck and regarding me I was doing the questions given by Kunal as well as some prblms in that specific topic on hackerrank
Q1: Missing Number
Alternate solution-
int missingNumber(vector& nums) {
int ans=0;
for(int i=0;i
I am a BCA student and I never thought I can solve this type of questions but after watching your bootcamp JAVA&DSA my reaction to FAANGM, u're kidding me you asked so easy questions in your Coding Interview now I am also able to solve those problems
So Thankyou Kunal Bhaiya or Sir because You have all the qualities and again Thank you for giving us valuable knowledge
Thankyou
if u r able to solve the questions ,it doesn't mean those are easy problems. Its ur problem solving skills
It means u are working at faang. Companies??
I solved the last 3 questions by myself. The difference is getting the logic. Hard questions are not hard, they are based on easy, it just requires that one single condition or line which solve the hard question. Ab hard questions ka darr nahi he. Thanks kunal.
Bro please keep uploading such videos,thanks a lot,please bring such new and hard interview problems on regular basis💓💓
I will cover it completely dont worry
i call today one of the best days of my life because after seeing two questions solved by kunal I was able to do all the problems. thank for the good work you are doing.
//this code will be helpfull to understand the algorithm in an efficient way
//great work kunal anna
class Main
{
static void cyclicSort(int[] nums)
{
int i=0;
while(i
love Kunal rather than girls the course which he taught are life savers, which do not realize most of guys, I never find this type of teaching technique, I am so grateful and thankful to you kunal
Let me tell you some thing very honestly.. The way kunal teaches no one can.. I have watched many videos regarding but this is the best u can can from, no one can come even close....
I did Q3 in little bit different by using previous method
Q3: Duplicate number
Input: a[ ]={3,4,1,2,2}
First sort by cyclic sort
Then it becomes
a[ ]={1,2,3,4,2}
Then
Sop(a.length-1)
Tq you kunal
same here
Same bhai
This course is so much better that every other course, It is like I am getting a therapy and also getting educated, the satisfaction on completing the question on my own is the best feeling. Thankyou so much.
For find duplicates, you cant use Cyclic Sort as the question clearly says we should not modify existing array.
wondering same
@@prettylilnerdy6802 Same here. Maybe they don't let you modify the values but they do let you sort it :)
don't know about multiple duplicates but if it is a single duplicate we can just xor whole array and the result will be answer
@@mukul-kr you need to xor the whole array, then xor that with all the numbers that should be in 1..n, no?
Yeah same I wonder, I think XOR can be used for that Ques, as we are modifying the array by sorting it.
thalaiva nee vera level 🤩🤩🤩
Right person to write "Head First Data Structure" Book. Thanks Kunal , Happy Coding
Kunal, in Q3: It was mentioned that nums shouldn't be modified right? But Cyclic sort modifies nums.
Love the way you teach bh the way❤
You can use indexOf() method also, you don't have to modify the array using this
Constraints aside, he's showing how you can apply this algorithm to this problem. Then when the interviewer would ask to do it without modification, you have to move to another approach. For that you can watch Striver's video for this problem.
hey kunal this video is really a magic first time i solved leetcode medium question i really trusted you when i start watching your sorting video till now i didnt forget the code i remeber the whole approach that is the power of your teaching style thank you so much i bought so many dsa paid courses none of that courses matched your free dsa bootcamp thank you so much please complete the other concepts also i understad the concepts only when you teach that concept.pleaseeee
I feel the missing number question can be solved by simply addition property, and maybe that might be slightly better.
I agree
It can be solved using xor as well.
I really enjoy when you mock people who creates hype out of nothing & demanding absurd amount .. Keep up.. thank you
Never learned such things in deep
@kunal kushwaha bhaii
Thank you so much, Kunal! Your explanation of Cyclic Sort was incredibly clear and easy to follow. Today, I solved problems on my own and I’m feeling more confident than ever! Your teaching style has truly made a difference in my learning journey. Keep up the amazing work - I’m excited to continue learning from you! Love you! 💖✨
hey Kunal your videos are great I can solve medium to hard-level questions of LeetCode 🥰, but the playlist is incomplete can you please provide the remaining topics such as DP, trees, and graphs it really helpful if you continue this playlist🥺.
He's too busy for that
@@vansh9857 Now he is working on it again!!
I shared the playlist to my friends and three of them are actually following^^
Proud of myself!
Upload accordingly to u ....not fast becouse quality is more important ...don't listen to anyone please
Don't worry I always maintain quality
we are lucky enough to have you as a big brother who directs us in the right way
May bhagwaan give you all the strength needed to you
thank you really
is it only me or every one can see suryanshu tomar's comment is older than the video itself? for me its showing 24 minutes
because videos are uploaded very early and published later. hence people can see those directly from playlist.
@@KunalKushwaha oh so no magic thats sad. bye gotta go, i have to wait in playlist section.
I don't understand why do people care about such irrelevant things. Just focus on learning my friend. These type of questions won't get you anywhere.
Now I got confidence in cycle sort, thanks bhai
having a good time with Kunal ....
no one is teaching DSA in India like this.
Great Work!
I am literally attached with this playlist..What a Stuff from you Kunal Bhaiya👌👌👌👌
thanks bro this course is best everything cover in detail😄
I cant believe my mind all Questions one solution. how easy you are making this is crazy bro
So motivating to submit a hard problem within 1 minute at 1st attempt that beats 100%.
Ab tutata tara dekhunga toh bas ek hi cheez mangunga Kunal bhaiya jaisa Dimag.🙂
Literally because of him i started liking coding and problem solving..
Thanku bhaiya my cyclic sort algo is cleared because of you. you taught it so good. i literally solved every problem because you cleared my every doubt about cyclic sort.
Again thank you
Aise hi or hard topic ko easy bnate rho
The best best best DSA course on youtube
"ese hi hauaa bna rkha hai " next level confidence 😍
I used to struggle with even leetcode easy questions, but now I literally solved leetcode hard in just some a couple of minutes all by myself without looking to the solution. This guy is amazing ❤
I literally solved 2nd question(google question) on my own.when he told these are the questions standard that they ask in faang coding rounds ,i swear my confidence lvl went to peaks.I wish what he told was true,coz i feel i can make it if i work a bit more hard.thank u so much kunal bhai,ur srsly OP.
best teaching video for coding , till then i have watched numerous channels but because of u i am now able to understand how to actually do it . a hearty thanks brother
solving leetcode questions by my own without seeing solution gave me next kaevel of motivation , thank you so much kunal you are the best
Best DSA bootcamp i have ever seen!!!!!!!!!!!!!!!!!!!
What a playlist Kunnal bhaiyaa..Best dsa playlist of utube.Can beat any paid courses.