mam, the problem which was given and the code u've explained is entirely different....the first example u have taken is "abzxxab"...the output should be "abzab" but not "abzxab"
@conceptsimpleeasycse1550Ай бұрын
@raghavagrawal62632 жыл бұрын
Hello mam, The first the problem you told in video and the link of which you have given is a little bit different from the one we have solved in this. Please explain the recursive approach for removing all duplicates because in that we have to match with prev one also.
@yogeshsikanderpuriya74173 жыл бұрын
ayushi the question u reading gfg and the question u r solving on on gfg practice both are different.
@AyushiSharmaDSA3 жыл бұрын
Yes, question is wrong given in practice section in gfg😅
@ShivRaj000092 жыл бұрын
Really create explanation you made recursion concept very simple by those 3 steps
@AyushiSharmaDSA2 жыл бұрын
Thank you Shiv, glad it was helpful :)
@Swaroop_Rath3 жыл бұрын
Hey Ayushi, First of all, thank u so much for such an amazing and quick response. Just one thing I want to mention is, the problem which you have coded on gfg practice is an easy one, but kindly check the one which is given on gfg page itself. It is saying to remove all adjacent duplicates, like complete removal of that character. Eg: i/p: abxxb o/p: a (This is because x is duplicate so completely removed it, then after removing x we are left with the string "abb" so now b is duplicate so completely remove b and then our final string becomes "a" and thus o/p:a).
@AyushiSharmaDSA3 жыл бұрын
Ohh😅, I will try to make video on that asap✌🏻.
@Swaroop_Rath3 жыл бұрын
@@AyushiSharmaDSA Sure Ayushi... Will be waiting for another extra-ordinary explanation. 😃
@AyushiSharmaDSA3 жыл бұрын
@@Swaroop_Rath 😊thanks
@Swaroop_Rath3 жыл бұрын
Most welcome 😄
@ashutoshshakya53213 жыл бұрын
but the output is "ay" for input "azxxzy"
@pycharm_boy43443 жыл бұрын
Very good explanation
@AyushiSharmaDSA3 жыл бұрын
Thank you. 😀 Please share the channel with your friends and juniors 🙏🏻🙌🏻
@sunnykakrani78303 жыл бұрын
hey ayushi can u pls tell me why my recursive code is giving TLE on GFG . string solve(string s,int i,int size) { if(i==size-1) { string res=""; res+=s[i]; return res; } string res=solve(s,i+1,size); if(res[0]==s[i]) return res; else { string new_string=s[i]+res; return new_string; } } string removeConsecutiveCharacter(string S) { return solve(S,0,S.size()); }
@anweshangoswami56362 жыл бұрын
Hey Aayushi, that's very nicely explained. Just one suggestion:- When you are explaining the code 2nd time on gfg portal, you may rather try explaining by taking the snapshot of the code, paste it in front of the dry run and then explain...maybe that would help us to relate better. But thanks again✌
@AyushiSharmaDSA2 жыл бұрын
Sure, thanks. I willing keep in mind :)
@kartikkk45832 жыл бұрын
nice explanation
@AyushiSharmaDSA2 жыл бұрын
Thanks😊
@UCSAkhilPrasad Жыл бұрын
Kindly Check the volume. as it is too low
@souravmallick88143 жыл бұрын
Thank you.
@AyushiSharmaDSA3 жыл бұрын
Welcome. Glad it helped :)
@RAUSHANKUMAR-iq4yj2 жыл бұрын
Thanks❤🌹🙏
@AyushiSharmaDSA2 жыл бұрын
Welcome 🤗
@ranjitkoragoankar3 жыл бұрын
Thank You
@AyushiSharmaDSA3 жыл бұрын
Welcome :). Glad you found it useful :)
@mrinalmadhav81193 жыл бұрын
Mam aap company wise questions lijiye pls
@akashchourasiya722 жыл бұрын
explain aaa = "" your output is a and i want empty string
Can you please change your video name to exactly which problem you actually solved? You are just misleading by giving name of a hard problem and solving for a basic problem.
@yupp_harish39363 жыл бұрын
hi ayushi i have one doubt
@AyushiSharmaDSA3 жыл бұрын
Yes harish go ahead
@yupp_harish39363 жыл бұрын
yar ese q kaise ayenge apne ko
@abhisheksamari45912 жыл бұрын
0.02 seconds solution string removeConsecutiveCharacter(string S) { // code here. // int p = 0; string str = ""; char l; str+=S[0]; int p = 1; for(int i = 1;i