How does it feel to solve medium level recursion questions? ❤️
@cricketguru75962 жыл бұрын
Visualization of recursive tree was little difficult? Having a high hope, after going through this series i will be more comfortable
@codefromscratch-keertipurswani2 жыл бұрын
@@cricketguru7596 let me know if you have any doubts. M here. You just watch the videos properly!
@cricketguru75962 жыл бұрын
@@codefromscratch-keertipurswani yes sure
@Nishchay-kc1gb2 жыл бұрын
Now i am understanding more clearly and speed has increased a bit
@yuv092 жыл бұрын
The question is rated easy, but it seems like hard one 😅😅😅
@unknowncoder4092 жыл бұрын
Yes the second catch was that we had to remove the empty string from the resultant vector as it is asked in the problem statement. Thank you Mam for great teaching!!!
@sameer93682 жыл бұрын
Since I am your senior experience wise... I always follow your video the way you provide detail explanation...please keep motivating us
@Hustle_bussle2 жыл бұрын
I hope I can explain every DSA concept as easily as you do!!Looking forward to that day✌🤞
@codefromscratch-keertipurswani2 жыл бұрын
You will be able to! I am so sure ❤️
@saurabhbera48332 жыл бұрын
I used to get scared using recursion. But these days I think recursion is fun it's all about recursive faith😂❤️
@rajinderkaur76582 жыл бұрын
Great explanation mam👌gaining confidence day by day only because of you💪thankyou❤more power to you❤❤❤
@arjunyadav-kt5jr2 жыл бұрын
i could figure out the second catch easily, because keerti does not let us forget anything!!
@swathijaishetty4602 жыл бұрын
Thanks for putting so much of efforts, to make us understand clearly :)
@MdRizwan-uu9dv2 жыл бұрын
Thankyou didi for this wonderful explanation👌👍👌👍👌
@bharanisrianbalagan19242 жыл бұрын
such a nice explanation ever
@prakashbtw6782 жыл бұрын
I have been waiting for this. Thank you thank you
@nidhikumari14792 жыл бұрын
Thank you so much mam! Solving a medium level rec. ques. feels great.👍
@codefromscratch-keertipurswani2 жыл бұрын
Yaaaay. Awesome Nidhi!
@simranvolunesia2 жыл бұрын
SUMMARY ============================= Write code for including character and excluding character Push "curr_subsequence" to "ans" when curr_idx == n Another way to remove the empty string from "ans" is to pop_back before sorting REASON: empty string will always be added to "ans" at last only Alternative code class Solution{ public: void helper(string s, int curr_idx, int n, string curr_subsequence, vector &ans){ if(curr_idx == n){ ans.push_back(curr_subsequence); return; } // include character helper(s,curr_idx+1,n,curr_subsequence+s[curr_idx],ans); // not include character helper(s,curr_idx+1,n,curr_subsequence,ans); } vector AllPossibleStrings(string s){ vector ans; helper(s,0,s.length(),"",ans); ans.pop_back(); // remove empty string sort(ans.begin(),ans.end()); return ans; } };
@MaheshBabuGurram2 жыл бұрын
Hi Keerthi, These videos are really helpful. I have shared it with my friend and they subscribed to the channel. One suggestion, could you discuss time and space complexity for each of the problems that you are covering?
@muthukumara87923 ай бұрын
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. mam could you make a video to solve this?
@rtarts15242 жыл бұрын
Thank You Mam..
@jasmindersingh67082 жыл бұрын
We found 8 number of subsequences but they ask for only 7 subsequences. The extra one is empty (" ").
@nidhibansaliitr2 жыл бұрын
I wrote it like a mix of iterative + recursive manner. Please share your view point on the code. void helper(List list, String s, String sChar, int total, int counter){ char [] charArray = s.toCharArray(); if(!list.isEmpty()){ int size = list.size(); for(int i =0; i
@paraschauhan44662 жыл бұрын
I also write dii current . length is greater than zero than res.pushbackcurrent
@ashwinisunilchoudhari96602 жыл бұрын
I have one doubt mam , after include helper get executed one time ,the next exclude helper should get executed.? but in explanation according to my understanding after first helper reached to n , base condition is executing and then exclude helper.
@prashanthiaruna85012 жыл бұрын
Am still in binary search only i practice in weekends as I don have time is this normal to be this slow ??
@GauravKumar-by1yt2 жыл бұрын
Thank you
@JardaniJovonovich1922 жыл бұрын
Thanks for the video. In GFG, it is mentioned that the expected space complexity is O(n*2^n). Shouldn't the SC be just O(2^n) ?
@codefromscratch-keertipurswani2 жыл бұрын
Will cover this in a youtube short tomorrow. Should have talked about it. Thanks for pointing it out ❤️
@div00072 жыл бұрын
Think of SC as an array of array, where total elems in the outer array are 2^N and each element(which is also an array of char aka string) can have max length of N. so SC will be size each elem * number of elems or O(N*2^N)
@nidhibansaliitr2 жыл бұрын
I was able to write code by myself. But your code is always more crisp.
@codefromscratch-keertipurswani2 жыл бұрын
Hi Nidhi, could you please drop a mail (just a hi would do) at workwithkeertipurswani@gmail.com
@jagdishkumawat27382 жыл бұрын
💯🔥
@ShubhamSingh-gk8vp2 жыл бұрын
let goooo !!
@ashwaniarchivee2 жыл бұрын
Present ma'am.
@deepchill52952 жыл бұрын
Day 19- present 🙋♂️
@mohdhaseeb98182 жыл бұрын
Present Ma'am
@nithishnair62652 жыл бұрын
Present 👍
@hackerIfeelYou2 жыл бұрын
Present ma'am 🤞
@cricketguru75962 жыл бұрын
Present 🔥
@vigneshiyer17652 жыл бұрын
Present mam!!
@myth__un2 жыл бұрын
Present ma'am
@devilnk84752 жыл бұрын
Didi ...plz live stream ...
@codefromscratch-keertipurswani2 жыл бұрын
What should we discuss in live stream? Anything specific in mind?
@devilnk84752 жыл бұрын
@@codefromscratch-keertipurswani 'Mam' if we have any doubts ask in live stream and we connect to directly...🥰🥰