sir bahut mast but I have one suggestion for you please write time-complexity and space complexity in editorials on pepcoding portal for this questions specially backtracking vaale
@Pepcoding3 жыл бұрын
Noted
@ankitamehra50454 жыл бұрын
arrey sir, yeh tshirt badiya hai ekdum!
@Pepcoding4 жыл бұрын
haha. thank you. webinar karao, aapko bhi bhej denge. Also a very cool laptop bag.
@code74344 жыл бұрын
alag level :)
@Pepcoding4 жыл бұрын
thank you. If you like the content, please share and subscribe. If you can help me get a webinar, we can send you some cool pepcoding goodies
@mehulbisht97084 жыл бұрын
sir i had 2 major doubts , 1) 14:41 sir , are these answers also valid as per the given problem ? {p=g, e=oodbad} {p=go, e=odbad} {p=goo, e=dbad} {p=good, e=bad} {p=goodb, e=ad} {p=goodba, e=d} 2) also, sir if we are given first string as "ppe" or "epp", but not "pep" but the other string is the same, i.e. "graphtreesgraph", will this approach still work ?
@Pepcoding4 жыл бұрын
for 2. yes, ppe aur epp ke case mei answer he nahi aaega. same order jaroori hai. for 1. yes
@mehulbisht97084 жыл бұрын
@@Pepcoding nice to hear this ! otherwise i would be thinking that the code that i made without watching solution was incorrect !
@tonystarc95674 жыл бұрын
Sir what about pattern "abba" and string "dog dog dog dog" here this is taking dog as 'a' and dog as 'b' and we want 'dog' to be only taken by exactly 1 character of pattern. Hence it is given false for this case and my output is coming true.
@Pepcoding4 жыл бұрын
Beta mera solution is case mei false he dega
@shauncrasta6193 жыл бұрын
@@Pepcoding No sir its giving true
@abhishekjha8220 Жыл бұрын
Tm space hta do to a=dogd , aur b=og ,se ye ho jayga
@mrmagician56093 жыл бұрын
Was able to do without watching the video. Thanks!
@Pepcoding3 жыл бұрын
Glad I could help!
@harishgaddapara15113 жыл бұрын
Great Explanation sir! we are putting only unique chracters in the map so why we need to use hashset again
@boredpotato63662 жыл бұрын
Because the answer has to be printed in same order as the original pattern. If we loop on map.keySet() then it will give answer in random order.
@mohitmittal102 жыл бұрын
lot of likes :)
@CodeCraftWithVinayak4 жыл бұрын
please discuss time and space complexity, mene try kiya derive karne but difficult laga.
@Pepcoding4 жыл бұрын
hanji. bhool ja rha hai. shuru karunga
@harshtekriwal1314 жыл бұрын
Sir isme ek issue aaskta hai , lets say string is dogdog and pattern is ab, then there will be a case where it will map 'a' with "dog" and 'b' will also be " dog" , basic according to this , two different characters can have the same mapping.
@LegitGamer23453 жыл бұрын
make a map of count of values , if count of any value is >1 then dont print here dog->2 so dont print just return
@yuvraj20382 жыл бұрын
Time complexity?
@tusharjha21504 жыл бұрын
Aaj 5 savaal minimum 🙈
@Pepcoding4 жыл бұрын
poori koshish rahegi. 2sra bna dia already. aa rha hai
@SCRIPTSAG4 жыл бұрын
Sir deeply tree answer tak ka bnana pda tab jaker clear huwa actually ho kya rha hai question ka logic pakdne me thoda thoda miss ker ja rha hu i think sir practice kerte rahunga ek din jaruar ho jayega
@Pepcoding4 жыл бұрын
Hanji beta, aise he lge rho aur sbka euler tree bnane ki koshish kiya kro.
@dtu-tech4 жыл бұрын
Sir telegram channel link no exist
@Pepcoding4 жыл бұрын
t.me/pepcoding
@yeshisrivastava24082 жыл бұрын
but this doesnt work! I tried it with same code .. did anyone tried it??
@yeshisrivastava24082 жыл бұрын
@@Kashish_Batra can you share the leetcode link of your solution?
@frankfill20503 жыл бұрын
I think this solution would fail with this test case => pattern: "ab" and string: "aa"
@anjneykumarsingh44614 жыл бұрын
Sir goodies asey hi mt dijiye koi contest k through milta toh mza ata
@Pepcoding4 жыл бұрын
apne paas 3000 bag rakha hai. aise bhi kar lenge aur waise bhi