If someone had skills like you especially the way you teach, they would launch this course as a paid one. Let it be anyone in this world. But you're here trying to help students like me and I'm very grateful. Thanks a ton, Kunal!
@Tomharry9102 жыл бұрын
Dont give him ideas!
@utkrishtsneh82982 ай бұрын
Atleast the course would've been completed by now had it been paid
@Jatin-zn1pxАй бұрын
@@utkrishtsneh8298true
@shouryakhandelwal64849 күн бұрын
@@utkrishtsneh8298 i am a coding beginner started this course just one month ago, so can you please tell me which things he hadn't taught yet and from where i could learn those things.
@Cloud-5773 жыл бұрын
no one explained recursion in so much detail like Kunal. Please someone give Kunal a medal already
@poojabennabhaktula48833 жыл бұрын
I dreaded recursion subset problem for almost an year now, and I stopped practicing because I was not very good with recursion. Now I can re-begin and work my way to FAANG
@jamtaranumber28412 жыл бұрын
me in the situation where i cant understand subset problems specially when for loop is used
@sameerakhatoon95082 жыл бұрын
@@jamtaranumber2841 you still struggling w/ iterative approach? lemme know, i can help you, can share the explanation here
@jamtaranumber28412 жыл бұрын
@@sameerakhatoon9508 yeah can you share your discord / linkedin
@dubeyarts8661 Жыл бұрын
Sister are u in good company now?
@arunny94302 жыл бұрын
No one taught me recursion like you. I, like many others like me, initially thought I understood recursion completely after watching the Fibonacci and Factorial examples. But then the reality hit when I tried to solve some medium-level problems. I realized that my concepts are so hazy that I had no clue how to apply anything I learnt in logically writing code to solve a problem. This site not only taught me the concept, but it is also so thorough that it forced me see what is happening from different angles and write code in multiple ways. Thanks, Kunal, for making recursion as clear as algebra instead of it being some monster like vector calculus or something. You are so thorough. Awesome.
@shanmukhasivasai83352 жыл бұрын
First I found Difficulty in understanding the subset problem . After carefully going through I too got it .This guy is awesome
@aakashprasad97773 жыл бұрын
Brother you are legend Several videos I have seen but I never understood these concepts You made these thing so easy Thanks Brother for such a beautiful and lovely content Concepts are fully cleared With the help of these videos now I have the faith and confidence to crack good companies Thanks Brother once again Great going Keep it up and deliver content like these
@KunalKushwaha3 жыл бұрын
Thank You 🙏
@gouravsyal20522 жыл бұрын
@@KunalKushwaha at 1:16:50 we should not sort the array as it will rearrange the array and subsets will be wrong. And we know in subset : 2, 1, 2 is the subset of 2, 1, 2 but 1, 2, 2 is not subset of 2, 1, 2
@bijayMohanty12c5f Жыл бұрын
@@gouravsyal2052 yep bro
@bijayMohanty12c5f Жыл бұрын
2,1,2 is subset of 2,1,2
@bijayMohanty12c5f Жыл бұрын
@@KunalKushwaha sir it change order of array 2,1,2 while sort it become 1,2,2 1,2,2 is not subset of (2,1,2 ) .(2,1,2) is subset of 2,1,2 1:16:08
@bhavanamalapur51713 ай бұрын
I've been following your course for the past two months, and I just wanted to take a moment to thank you, Kunal. You're truly a coding legend! The way you break down complex problems and explain the solutions in such a simple, understandable way is genuinely amazing. Your teaching style is inspiring!
@ARYANTIWARI-y5t3 ай бұрын
These are the best videos on KZbin and still have less about of commends it's not good i guess public is so lazy . but in reality how much this person give the efforts to make these videos . i appreciate .. A BIG THANK YOU
@armaanthakur811611 ай бұрын
Everytime you make me like your video no matter what I don't know anyone who explains every small things like you I love that you made this beautiful course for free even though it's so much worth. May krishna bless you !
@shakibsiddiqui29993 жыл бұрын
Bro when i see your video it gives me confidence 👍
@singhsuryanshu3 жыл бұрын
Kunal, I cannot believe this is so easy. I wrapped my head around with backtracking a lot and was still confused. Even took sessions of a paid educational website to understand backtracking. And literally I just watched your video once and all concepts are clear. You are legend.
@manavarora76443 жыл бұрын
+1
@rishika91023 жыл бұрын
Hii can u please tell me that is this course worth following as m a beginner no programming background plz reply confused
@rishika91023 жыл бұрын
@@manavarora7644 Hii can u please tell me that is this course worth following as m a beginner no programming background plz reply m confused
@Gookun2 жыл бұрын
@@rishika9102 PICK A programming language first, then learn it.
@misbashaikh3357 Жыл бұрын
This video took me 8 hr to get completed but it all worth it. Thank you so much ❤
@nizamkarivarsha10204 ай бұрын
I have seen so many videos related to java but no use after watching your videos Iam understanding concepts clearly Thankyou so much for helping those students who are not able to afford paid courses
@iamyasirameer2 ай бұрын
The man who invented the Recursion!
@chaitanyaprasad69243 жыл бұрын
Amazing!!!! You proved that a good teacher is not one who tells all the solutions but someone we can lead us to all solutions. As once I listen to you logic coding has become damn easy!!
@aniketshetty6694 Жыл бұрын
Your confidence level is what makes you different from others. The best dsa course ever!
@rockrk2519 Жыл бұрын
can anybody please tell in which video kunal has covered sliding window...
@poorpanda9033 Жыл бұрын
@@rockrk2519 he hasn't covered yet he definitely will
@anujar55082 жыл бұрын
This is such a great video and it's incredible that you are not charging for sharing this immense knowledge. Just love the way you first explain the approach ,how to think and then actually solve the problem.Thankyou so much for these videos . And please please upload the graph and trees series 🙌
@mathlover7688 Жыл бұрын
ye kya ho raha dsa se main bore kyon nhi ho raha ye toh magic ho gya kunal bhai ,love you bhai aisa best content ke liye ab lag raha main sikh jaunga dsa
@charon7110 ай бұрын
it is unbelievable how easy you can solve recursion tasks after watching these videos. You really get told HOW to think. Thanks alot!
@KunalKushwaha10 ай бұрын
So nice of you
@whatwelearntoday Жыл бұрын
This is the first time that i understood recursion in subsets after a lot of hunt for this material .Thanks a lot!
@KunalKushwaha Жыл бұрын
Glad to hear that!
@Lifeoffacts2111 ай бұрын
After all that your efforts and following all the previous playlist videos , Now i get some confidence in DSA to solve problems easily . Thanks Kunal bhaiyaa (Sir) for all that quality Content that i hunt for all over youtube
@jamespeterson78242 жыл бұрын
'Recursion made easy' by kunal. Good Intuation, Thought process and superb way of teaching. Good work 🙂
@davidmwangi43123 жыл бұрын
Best recursion series I have watched.Excellent explanation. Thanks Kunal
@KunalKushwaha3 жыл бұрын
You are most welcome
@arishkhan63003 жыл бұрын
Brother you are legend i see the spirit in you to become s Minecraft stremer . You will achive great success as gamer.
@beb57swatimohapatra212 жыл бұрын
Finally!!! I understood these topics... you r a legend kunall
@musicalboy29755 ай бұрын
Man you are freaking awesome. I feel confident on recursion and backtracing on watching your series .
@pawanyadav402421 күн бұрын
amazing video, for learning subset and subsequence problems and solution orientation Thanks @KunalKhushwaha for creating such an amazing content
@premraja553 жыл бұрын
Legendary way of teaching! Thanks brother
@KunalKushwaha3 жыл бұрын
My pleasure!
@aakashyadav9117 Жыл бұрын
you are genius man , i did the subset problem of string "abc" and i used loop inside that , and you simple printed using recursion 🙌
@nikitasrivastava155224 күн бұрын
I was facing the issue with the last code. Putting else statement as well (else {start=0}) when the condition for duplicates doesn't hold, fixed it. Brilliant explanation. Thank you
@rakeshsagar9510 Жыл бұрын
I find his sub sequence tutorials much informative and communication is superb.
@KM-rh8gd5 ай бұрын
Bro i was starting up with my college and wanted to start with DSA glad that i have the right guide and tecaher.
@Helly_Patel2 жыл бұрын
Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!
@simranpreetkaur1142 жыл бұрын
In ques 9 we can just check if outer list contains that subset. If it doesn't contain, then only we should add it in outer. This way we'll avoid duplicates: public static List subsetDuplicates(int[] arr) { List outer = new ArrayList(); outer.add(new ArrayList()); for(int num: arr) { int n= outer.size(); for (int i = 0; i < n; i++) { List inner=new ArrayList(outer.get(i)); inner.add(num); if(!outer.contains(inner)) outer.add(inner); } } return outer; }
@akashdeepgupta2085 Жыл бұрын
1:21:31 it will be good if we sort the array first, for the test cases like [1, 2,2,2] or [4, 4,4,1,4]. otherwise it will fail.
@its_shivam_jha Жыл бұрын
Great job man!
@kcalbduorp3499 Жыл бұрын
.contains will take another internal nested loop so it increases the time complexity...
@akashdeepgupta2085 Жыл бұрын
@@kcalbduorp3499 yes
@prasadm36142 жыл бұрын
Insanely simple explanation of subsets... M awestruck
@omkarg013 жыл бұрын
24:52 - 24:58 If I am not wrong, sliding window has not covered.
@rakeshpotnuru3 жыл бұрын
Don't worry he keeps track of syllabus on github issue, maybe mistakenly said that.
@faizanhaider39532 жыл бұрын
phele to dur se pair chu k parNaam bro 🙏🙏 DhanSuuu lecture Kunal bhai... Nobody teaches like you.. but plz complete krdo bhai playlist... 🙏🙏
@mohamedjasimazizg442 Жыл бұрын
I have been watching your videos for so long it's been very helpful to grow personally
@varunkumar62233 жыл бұрын
for the last question instead of adding the start or end index , if found duplicate just start the inner loop with outerarray size / 2 and it works fine #include using namespace std; vector subsetrec(string main,string pro){ vector s; if(main.empty()){ s.push_back(pro); return s; } char ch = main[0]; vector s1 = subsetrec(main.substr(1),pro); vector s2 = subsetrec(main.substr(1),pro+ch); s.insert(s.end(),s1.begin(),s1.end()); s.insert(s.end(),s2.begin(),s2.end()); return s; } void subsetitr(){ vector v{1,2,3,3}; vector res; res.push_back({ }); for(int i=0;i 0 && v[i] == v[i-1]) j= (n/2); // LOOK HERE for(;j
@gnanaprakashm843 Жыл бұрын
Can you explain your thought process behind why it works ?
@laxminarayanakoyyana1753 Жыл бұрын
@@gnanaprakashm843 he is just removing duplicates bro , that's it.
@gnanaprakashm843 Жыл бұрын
@@laxminarayanakoyyana1753 I see I'll look into it. thanks 🙏
@HARSHKUMAR-g2d6u8 ай бұрын
Incredible course, the concept which you tell us in the starting of the recursion is enough to solve this problem and the track the answer in the function body is the awesome way to hold the answer more then the in the arguments
@jatinkoli33893 жыл бұрын
just started ur dsa course and fell in love with that
@Nkchauhan-o9y7 ай бұрын
I like the way you teach it is amazing that you are giving the tricks which person can apply to various types of questions. It's true even now i feal it is the best course for DSA out there on KZbin thanks for your valuable time and efforts for us. It would be so good if this was a whole course of DSA i would really like to learn whole DSA from you if it is feasible Please provide dynamic programing videos too! people would love it. Thanks for course and your efforts!
@sadmansakibmugdho41343 жыл бұрын
Hello Kunal. I want to know, After the DSA course, will you show us how to use our skills in open source and all that stuffs till how to approach in a company? If not then please consider this.🙏🙏🙏
@DevanshuAugusty2 жыл бұрын
24:55 when did he teach sliding window?
@bhavyabansal11432 жыл бұрын
Thank you so much for explaining this beautifully. When can we expected videos for DP, graphs and trees?
@kishanpareek28483 жыл бұрын
Ye Kunal ka course bhot mast hai. Sab samaj aa gya
@ombhandari61483 жыл бұрын
Thank you brother Finally I understood how to solve the subsets problem.. Thanks a lot brother. You are doing great
Broo tnq very much ❤❤❤ you are helping me a lot for learning recursion. since in these topic i am very confused.However i see your videos ❤ it's like a wow.
@panchanansahoo14632 жыл бұрын
Nice video kunal. For the last question we can add a check before adding the inner list to the outer list, If the outer list already contains the inner list or not
@akashnag6459 Жыл бұрын
Easiest explanation of recursion in internet.
@siddhigupta76732 жыл бұрын
pls kunal complete the course no other course can match the level of content u were providing
@29_jayavishnur895 ай бұрын
Fun fact: In iterating subsequence with duplicate you can set the start as outer.size() /2, thereby u dont need to use end variable itself
@DSrikanthd2 жыл бұрын
This is just brilliant Brother, Keep doing it. Just waiting for the DP series, Please do it soon.
@BrajBliss2 жыл бұрын
This and the merge sort video are the only one I just can't get in my head.
@alonbrim2 жыл бұрын
Great Video! Very well explained! Great job Kunal, thank you very much!
@KunalKushwaha2 жыл бұрын
You’re welcome
@Fawzaan4 ай бұрын
The Goat ❤
@sriharshakandurivenkatases25872 жыл бұрын
We are grateful to you for the knowledge you are providing for free🙏🙏 Waiting for your next DSA video #DSAWithKunal❤
@atharvparlikar87653 жыл бұрын
Waa ye hi time mila tha upload karne ko 😐
@aasisinha61002 жыл бұрын
Truely informative and lots of creativity in teaching...became friend without meeting you..
@komalchauhan75356 ай бұрын
Great Video, Please complete this bootcamp asap.😇
@karthick79833 жыл бұрын
10:05 le kunal : ccd le siri : yeah bruhh!! LOL.
@dsrfacts64832 жыл бұрын
Amazing content bro... Keep doing the good work..Lots of luck 🎉
@devesh8193 жыл бұрын
A new episode of recussion session 😂😂
@Tomharry910 Жыл бұрын
Another great video. Thanks for the good work Kunal. Wish you the very best!
@subhankarkanrar949411 ай бұрын
Just Enjoying every moment ❤. Love it😊
@anuragbudakoti7552 жыл бұрын
Dhanyawad apka iss DSA course ke liye
@vaibhavghatge8553 Жыл бұрын
Really awesome way of teaching finally, thinking in the recursive way, |2^n sub set
@PrasunKundu3 жыл бұрын
Wait kar rha tha iske liye....
@nishu07665 ай бұрын
please upload all the remaining topics of this DSA playlist as soon as possible
@plutomessi21 Жыл бұрын
In this example, the recursiveSubstring method prints the current substring and then makes a recursive call with s.substring(1). Each recursive call creates a new substring starting from the second character of the previous substring. Output: vbnet Copy code Substring: abcdef Substring: bcdef Substring: cdef Substring: def Substring: ef Substring: f Empty String
@andretheruler7142 жыл бұрын
recursion is still hard but you explained it well
@abdulrauf7815 Жыл бұрын
The definition and recursion tree for subsets was very very great❤❤
@apurwarokade3863 Жыл бұрын
You are a genius kunal 😊
@samworld79233 жыл бұрын
I thought to take half of outer list size as start index, but sooner realize what if multiple duplicate elements are coming, it will fail to survive that condition
@mohammedadnan24492 жыл бұрын
Q9 : Subsequences of a string with duplicate elements Can be solved in easier way with the code snippet mentioned below:- ------------------------------------------------------ List outerList = new ArrayList();//outerList outerList.add(new ArrayList()); for (int num : arr) { int size = outerList.size(); for (int i = 0; i < size; i++) { List internalList = new ArrayList(outerList.get(i)); internalList.add(num); if (!outerList.contains(internalList)) { outerList.add(internalList); } } } return outerList; ---------------------------------------------------------
@Mlakshman-w9k Жыл бұрын
contains method takes O(n) of time then it leads to O(n^3) for overall time complexity
@Mlakshman-w9k Жыл бұрын
static List subSetDuplicates(int[] nums) { Arrays.sort(nums); List outerList = new ArrayList(); outerList.add(new ArrayList()); for (int i = 0 ;i < nums.length ; i++) { int start = 0; int end = outerList.size(); if( i > 0 && nums[i] == nums[i - 1]){ start = start + (end - start ) / 2; } for (int j = start; j < end; j++) { ArrayList intenalList = new ArrayList(outerList.get(j)); intenalList.add(nums[i]); outerList.add(intenalList); } } return outerList; }
@nagasatya5969 Жыл бұрын
Kunal, please try completing the series. It'd be of great help. cuz of all the videos I've watched on recursion, all of them were very specific to the prlms they taught and none of them explained how recursion actually works. I don't think they'd do any better with topics like dp. So, if you can, complete the series
@rishabhrawat81972 жыл бұрын
touched my heart as always
@beyourself6377 ай бұрын
00:03 String Questions and Subsequences 03:35 Recursion subset and subsequence concepts 10:19 Explanation of function call and process in string operations. 13:46 Recursion and string processing explained 21:02 Understanding recursion and string questions 24:31 Subset, subsequence, and string questions are important for interview preparation. 31:26 Understanding recursion and subset/sequence problems. 34:43 Recursion and string questions in a KZbin video 40:49 Discussion on various functions and activities using code 44:06 Recursion and string questions are challenging. 51:15 The video discusses creating subsequence and string questions. 54:30 Sequencing, string manipulation, and recursion in programming 1:01:07 Explaining recursion and its use in solving problems 1:04:05 Creating a new list based on the original list size. 1:10:16 Understanding subsets and complexities 1:13:16 Preventing duplicate elements in newly created subjects
@harshjaiswal16343 жыл бұрын
Recursion session... Just like therapy session
@jatinkoli33893 жыл бұрын
Bhaiya i am getting admsion into DTU CS can u please make a video 1st year roadmap I was waiting to get into college to start programming with ur course Loving ur confidence and content
@devjoshi70623 жыл бұрын
kzbin.info/aero/PLPX75d4curILdTmhcM5iJ6ReNx-LKW12P here, these are old videos of kunal when he used to work with a ed-tech, he has made a complete 4 year roadmap for B.Tech students
@gauravdham9982 Жыл бұрын
Great work bro !! Keep it up and keep making such videos for others to learn!!
@Nameiscantsay7 ай бұрын
In the last question we can simply do that question as the previous question but after that just check whether each element is present in the list if it is there just remove duplicates from the list which takes O(N) time complexity. But brother you are sorting the array which takes O(NLog N) which is not effecient as compared to removing the duplicates after doing this question as the previous question.
@muzi97862 жыл бұрын
You are the best !!! please make some video about DP thanks ahead!!!
@adityapalve37523 жыл бұрын
very good video, i used to detest recursion kinda like it more than iteration now
@dakubhai60143 жыл бұрын
U r diamond dude...May lord protect u from Aliens for the boon of mankind.
@aakashgoswami23563 жыл бұрын
Other : How to solve a problem. Le kunal : How to approach a problem.
@KunalKushwaha3 жыл бұрын
That was the plan
@sameerakhatoon95082 жыл бұрын
for qn 9, please find my recursive solution below approach: if we ignore the occuring of duplicates char means we ignore each of that duplicate char public class Recursion{ public static void main(String[] args) { System.out.println(subSetsWithDupInString("122", "")); } static ArrayList subSetsWithDupInString(String str, String ans){ if(str.isEmpty()){ ArrayList ls = new ArrayList(); ls.add(ans); return ls; } char ch = str.charAt(0); ArrayList left = new ArrayList(); ArrayList right = new ArrayList(); int i = 1; while(i
@alpersener4269 Жыл бұрын
bro you're awesome thanks for the concepts you have taught us.👑👑👑
@SAIFALI-rn5cs Жыл бұрын
Bro, why I am getting error at p:p+ch, saying as Syntax error on token " : ", invalid AssignmentOperator.
@sourabhsahu9613 жыл бұрын
Bhaiii you are legend, when you are coming with OOP java tutorials
@ShubhamKumar-vu4ql2 жыл бұрын
44:21 can anyone explain the passing in the argument solution. i.e. how will u return two recursive calls simultansly, any help appreciated!
@projectsdb40342 жыл бұрын
Thanks for the great tutorial please continue the series
@ragulp54892 жыл бұрын
Thanks bro all the concepts u deliver is so clear sir. pls make some vdos on windows sliding, two pointer approach too sir.
@SravanthiPotuluri-k5c Жыл бұрын
Please make a video on subarray concepts
@santoshis2568 Жыл бұрын
hi Kunal can you please do sliding window problems?
@dmitriiserikov15282 жыл бұрын
@Kunal Kushwaha , the solution in Q9 changes the order of the original array. Wouldn't the result be considered as a list of subsets and not a list of subsequences?
@Mlakshman-w9k Жыл бұрын
1:11:50 space complexity is O(2^n*n)
@DevanshuAugusty2 жыл бұрын
Q8 C++ Solution : vector subsetIterate(vector vec){ vector ans = {{}}; for(auto i : vec) { int n = ans.size(); for(int j=0;j