Get Keypad Combination - Solution | Recursion | Data Structures and Algorithms in JAVA

Sdílet
Vložit
  • čas přidán 24. 07. 2020
  • Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
    NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the solution of the famous Nokia Keypad question where we are required to find all the possible combinations obtained from certain presses on a keypad as explained in question. For a better understanding of this problem, click here: • Get Keypad Combination...
    For a better experience and more exercises, VISIT: www.pepcoding.com/resources/o...
    #pepcoding #programming #freeonlinecourses
    Have a look at our result: www.pepcoding.com/placements
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education

Komentáře • 201

  • @gaganverma7304
    @gaganverma7304 Před 4 lety +91

    Ur content gonna change the future of many it engineering aspirants great work ❤️❤️❤️❤️

    • @Pepcoding
      @Pepcoding  Před 4 lety +5

      Thanks a ton

    • @shubhamsonal5871
      @shubhamsonal5871 Před 3 lety +2

      @@Pepcoding Please solve a problem called : rod cutting problem using recursion, here we need to maximise the number of cuts we can make. I am unable to understand the brute force approach of solving this using recursion. Link to the problem is ide.geeksforgeeks.org/ItQt4rQ0ND
      Please note, I am not expecting the DP solution but just a clarity on the given code. please make a video on this using recursion.

    • @bikramjitdas7000
      @bikramjitdas7000 Před 3 lety

      @@shubhamsonal5871 yes sir I also got stuck. And I am learning from your playlist, I have a question sir, How to know I am now ready for thr interview,and also how to apply off campus for product based companies

    • @gungunsinghal9562
      @gungunsinghal9562 Před 3 lety

      Yeah..thanks pepcoding

  • @nknidhi321
    @nknidhi321 Před 3 lety +47

    "Submit karne walo ki kvi haar nahi hoti, but, shayad unka code udd jata h kvi kvi" Hilarious..😂😂😂

  • @amanpreetsinghsetia1524
    @amanpreetsinghsetia1524 Před 3 lety +15

    Sir i did this on my own !... aapne faith se result nikalna sikha diya sir ache se thanks a ton :)

    • @Pepcoding
      @Pepcoding  Před 3 lety +10

      I am glad. Keep learning. Keep supporting. Your kind words are the kind of motivation that truly help me in making more and more content. Especially, these days, not everybody is generous with motivating anybody either. It means a lot

    • @nikitajaiswal9112
      @nikitajaiswal9112 Před 2 lety

      Mujhse nhi bn paya mene previous questions khud kiye pr ye nhi bn paya Or eske pehle wala question bhi.. Ye question solve krne ke liye kis video ko achhe se dekhna h pepcoding ke any suggestion

  • @faizanhaider3953
    @faizanhaider3953 Před rokem +2

    Not even a single teacher in CZcams aur any another platform clear concept like you cleared in each n every lecture... Hats off sir... 🙏🙏

  • @harshpandey7605
    @harshpandey7605 Před 3 lety +8

    Iss channel ke aas paas koi aa nahi paega agle 5 saalon tak itna acha flow mein apdaya gya hai ye

  • @chiragchawla2902
    @chiragchawla2902 Před 2 lety +3

    Love your explanation sir, watched your prev videos and did this on my own. Thanks a ton.

  • @lofigroove1912
    @lofigroove1912 Před 2 lety +2

    Sir your content is unmatchable. since I started watching your videos, DSA has become so simple. Thanks a ton.

  • @programmertik2046
    @programmertik2046 Před 2 lety

    The flow of this playlist was so great that,I solved this problem on myown Thnx Sir ,my first recursion problem!!

  • @bitqahdi6592
    @bitqahdi6592 Před 3 lety +17

    Simple solution for adding " " in arraylist is that " " will make the size of arraylist as 1 and the inner loop for(String rstr : rres) will run once for every character ( lets say abc for case of integer 2). Now if we did not add " " then the inner loop will never run and hence the size of arraylist will remain zero, final output will always be a zero size empty arraylist.

  • @vithleshkumargupta
    @vithleshkumargupta Před 3 lety +2

    Sir , Very good explanation to every question. Thanks for providing free content with such excellent explanation.

  • @ayazshakeeb
    @ayazshakeeb Před 2 lety

    thanks sir, I am able to solve almost all the problem by getting the concept explained in first couple of videos of playlist. I did this problem also before looking at your solution .

  • @raj_kundalia
    @raj_kundalia Před 2 lety

    Watched on 20 October, 2021 - Thanks for the video.

  • @bsc.ca-42-ashwanikumar53

    You are Doing great work for students like me who belong to a very small village and cannot afford any data structure course.

  • @udaykulkarni5639
    @udaykulkarni5639 Před rokem +1

    hahaha 15:19 explanation level OP !! "Idhar baaalti hi khaali h.. But idhar baaalti me magga h.. magge me paani nahi h." I was laughing out loud!! Great explanation btw!! Keep it up

  • @hritikagrahari8314
    @hritikagrahari8314 Před 3 lety

    Very underrated video, this video deserves much more likes and views.

  • @adityakajale4403
    @adityakajale4403 Před 3 lety +1

    I understand recursion because of u sir thanks a lot

  • @projectsdb4034
    @projectsdb4034 Před 2 lety

    Your patience level is just amazing

  • @candyman6846
    @candyman6846 Před 2 lety

    Love your Teaching and your methodology

  • @AmanTheMystery
    @AmanTheMystery Před 2 lety

    esa content khi doodne se nhi milega salute sir for your effort

  • @sandeepnaikat5598
    @sandeepnaikat5598 Před 14 dny

    Wonderful way of teaching great work done sir

  • @kunalprashant1561
    @kunalprashant1561 Před 2 lety

    Thank you so much for this wonderful explaination

  • @neerajnk2900
    @neerajnk2900 Před 3 lety

    sir.... you are so hardworking... you are a nice teacher... ekdum mast... chill hokar samjhate or wo bhi bhot mast tareeke se.. dil jeet liya sir apnr

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Dil ke badle linkedin pe ek post likh do beta ki aisa aisa ek channel mila jispe free content hai. Umeed karunga ki aap sirf video nahi dekhenge, question submit bhi karenge
      www.pepcoding.com/resources/online-java-foundation

  • @444not
    @444not Před 3 lety

    Sir pakka pakka samajh aa Gaya !

  • @chethanmr6595
    @chethanmr6595 Před 3 lety +3

    @15:25 Thank you Sir. Very graphical explanation...baalti me mug hai aur mug me paani nahi not just baalti me paani nahi hai

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      You are welcome and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @sakshiaggarwal6199
    @sakshiaggarwal6199 Před 3 lety

    Awesome Explanation.

  • @arnavkukreti2009
    @arnavkukreti2009 Před rokem

    best teacher for DSA

  • @kushalappaca5324
    @kushalappaca5324 Před 3 lety

    What an explanation... 👏👏

  • @ganeshbansode9380
    @ganeshbansode9380 Před 2 lety

    Thank you for this explaination, because of you I saved myself from giving up on this recursion problems.

    • @Pepcoding
      @Pepcoding  Před 2 lety

      Glad to know that you love our video, for better experience.
      Visit - nados.pepcoding.com and sign up to NADOS.
      Don't forget to follow us on Instagram instagram.com/pepcoding/

  • @sanketkale1851
    @sanketkale1851 Před 3 lety +4

    You made difficult problem so easy and understandable, thank you sir

    • @Pepcoding
      @Pepcoding  Před 3 lety +2

      Thankyou beta!
      I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @joeljacob4685
    @joeljacob4685 Před 3 lety +2

    Wow sir you made recursion a very interesting topic
    Thank you sir..

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Thankyou!
      If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )

  • @tejaswinisingh6263
    @tejaswinisingh6263 Před 3 lety +2

    Duniya ki har problem ka explanation 2 ki power 0 , 1 hota hai ya 0, ab agar 2 ki power zero 1 sach hai to ye bhi sach hai:) thank you real life jeetu bhaiya :)

  • @PawanKumar-fu2fh
    @PawanKumar-fu2fh Před rokem

    Sir you are the best

  • @umangbehl8152
    @umangbehl8152 Před 2 lety

    cyrstal clear explanation

  • @vrajeshbadgujar
    @vrajeshbadgujar Před rokem

    Thanks a lot

  • @nknidhi321
    @nknidhi321 Před 3 lety +6

    You are the best teacher..🙏 Thanks.. beautiful explanation..❤️

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      It's my pleasure

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Glad to know that you liked the content and thank you for appreciating.
      The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
      So, keep motivating, keep learning and keep loving Pepcoding😊

    • @nknidhi321
      @nknidhi321 Před 3 lety +2

      @@Pepcoding Definitely sir, Prepcoding is the only channel with so much of detailed explanation.. coding se pehle approach, fir code, fir code k saath dry run, heaven.. !! ❤️❤️❤️

  • @em_nikhil_007
    @em_nikhil_007 Před 3 lety +1

    Thank you sir , mai aapke wajah se recursion seekh paaya hoon , nhi to mera pichle 6 months se dimaag kharaab ho rha tha jab bhi mai recursion ke problem dekhta tha...... lekin ab shi se ho jata hai . Thank you for providing free content . Its AWESOME.....

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Thank You very much!! It's nice to hear this !! keep watching and share it with your peers

    • @em_nikhil_007
      @em_nikhil_007 Před 3 lety

      @@Pepcoding sure sir i will share you channel . Congratulations for 10K..

  • @amanbedi93
    @amanbedi93 Před 3 lety

    Instead of returning arraylist with empty string, the base case can return the characters of last keystroke:
    if(str.Length == 1)
    {
    List templist = new List();
    var tempindex = Convert.ToInt32(str);
    // last character is the index for kpc
    var itemKpctemp = keyPadCodes[tempindex];
    // get the keypad code for the integer in input string str representing last character
    var kpccharstemp = itemKpctemp.ToCharArray();
    // convert keypad to character array
    foreach (var tempchars in kpccharstemp)
    {
    templist.Add(tempchars.ToString());
    // store each character as string into templist and return it to interact with rest of the kpc characters on the way down
    }
    return templist;
    }
    That way one recursive call is prevented (on the way down) and the base case looks easier to understand.
    P.S. this is C# implementation

  • @aashishgoyal1436
    @aashishgoyal1436 Před 3 lety

    you r an inspiring teacher

  • @ProgrammingWithProject

    Sir you are great

  • @yashsaxena9
    @yashsaxena9 Před 4 lety +12

    Very clear explanation sir, please keep the good work up
    Advice: at the start of solution video, please advice to watch the question video first and put its link in description, it might be confusing for new comer

    • @ayushgoel9584
      @ayushgoel9584 Před 4 lety +4

      That is why sir always tell us to solve from portal, where everything is arranged :)

    • @Pepcoding
      @Pepcoding  Před 4 lety +2

      Yes, you are right

    • @Pepcoding
      @Pepcoding  Před 4 lety

      Noted

  • @vnsrahulsri
    @vnsrahulsri Před 3 lety +2

    Amazing content on your channel for Recursion & Backtracking. Appreciate your efforts and contribution.

  • @sukanyamahapatra4742
    @sukanyamahapatra4742 Před 3 lety +3

    After thinking for 2 hrs , I finally did the code by myself in c++, since i don't know java, Thank you sir for such type of questions

  • @jolly_dollyyy
    @jolly_dollyyy Před 2 lety +1

    God level explanation!!

    • @Pepcoding
      @Pepcoding  Před 2 lety +1

      Glad it was helpful!
      For better experience and well organised content sign up on nados.io
      Don't forget to follow us on Instagram instagram.com/pepcoding/

  • @ketansharma6955
    @ketansharma6955 Před rokem

    very nice

  • @divyabajpai3191
    @divyabajpai3191 Před 2 lety

    You are best

  • @pankajbisht897
    @pankajbisht897 Před 3 lety

    Could you comment on how optimum the solution is . Some comment on time complexity would be great. The content is great though

  • @kunalks
    @kunalks Před rokem

    It could be better if you explain TC and SC. and thanks for awesome video.

  • @vivekbharti1792
    @vivekbharti1792 Před 2 lety

    I am the 1000th liker of this wonderful video class.

    • @Pepcoding
      @Pepcoding  Před 2 lety +1

      Thankyou for your support.
      And for better experience, visit nados.io, where you will get well curated content and career opportunities.

  • @kushsharma6653
    @kushsharma6653 Před 3 lety +1

    You can use this as base condition which is more easy to explain also: if(str.length() == 1){String keyValues = map.get(str); //using HashMap here. Ex --> {"1", "a,b,c"} String [] arr = keyValues.split(","); return Arrays.asList(arr);
    }

  • @yashkushwaha8492
    @yashkushwaha8492 Před 3 lety

    Sir it's fine to use this:-
    String s = arr[Integer.parseInt(String.valueOf(ch))];
    For ascii code

  • @amitbajpai6265
    @amitbajpai6265 Před rokem

    why are we not using stringBuilder instead of string as it gives the O(N) complexity when we try to add the strings.

  • @abhisheksinghvlogs1339
    @abhisheksinghvlogs1339 Před 8 měsíci

    kya baat hai sir

  • @MDArif-we2kg
    @MDArif-we2kg Před 3 lety

    sir, agar isme array pass ho toh instead of string. ??

  • @mallakbasheersyed1859
    @mallakbasheersyed1859 Před 2 lety

    Sir,do the empty character has ascii value

  • @sachingoyal7443
    @sachingoyal7443 Před 3 lety +5

    Sir.. Outstanding video.. Wouldn't it be better to have base case as string.length ==1 and then return array of individual character in that.. With this, we can avoid empty array elem which is weired.

    • @Pepcoding
      @Pepcoding  Před 3 lety +3

      Thankyu beta!
      And jo aap base case keh rh ho usse dubara analyse kro aur ek bari aache se dry run kr k dekho pura question dubara se. You'll automatically get the answer of your question.

    • @sachingoyal7443
      @sachingoyal7443 Před 3 lety

      @@Pepcoding analyzed.. And found it correct.. Submitted solution on leetcode. It's working fine.

    • @511-neelbutani9
      @511-neelbutani9 Před 3 lety

      @@sachingoyal7443 can you excalty say what you returned ?

  • @kushagradiwan1684
    @kushagradiwan1684 Před 2 lety

    sir jab mres toh har baar new create ho raha haiin,toh purana vaala kaise return ho skta?

  • @divyanshuyadav5524
    @divyanshuyadav5524 Před 3 lety

    I'm in love !! ❤️

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      wow, this cheers me up. I am glad we at pepcoding could be of help to you. Keep learning. Also, recommend us to your juniors and peers, they may also benefit

  • @yadneshkhode3091
    @yadneshkhode3091 Před 2 lety

    thanks bhai

    • @Pepcoding
      @Pepcoding  Před 2 lety +1

      Glad it helped!
      Keep learning.
      And for better experience and well organised content visit nados.pepcoding.com

  • @suvanshgupta7813
    @suvanshgupta7813 Před 2 lety

    balti hi khali hai
    balti mai mugga hai but mugge mai paani nhi hai xD
    Best Explanation Sir ji

  • @parthsaraswat9744
    @parthsaraswat9744 Před 3 lety +2

    You are going to be viral in coming months

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like my efforts, I request a review
      g.page/Pepcoding/review?rc

  • @punitraj6529
    @punitraj6529 Před 3 lety +5

    Thank you so much for this wonderful explaination sir. By the way, What is the complexity of this code ?

    • @Pepcoding
      @Pepcoding  Před 3 lety

      You're welcome

    • @Pepcoding
      @Pepcoding  Před 3 lety

      If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

    • @HarshKumar-nh6be
      @HarshKumar-nh6be Před 3 lety +1

      number of digits to the power n

  • @kuntasunny8688
    @kuntasunny8688 Před 2 lety

    What is Time complexity?

  • @VaibhavSethF
    @VaibhavSethF Před 3 lety +1

    Sir, buffer reader is good, or Scanner class for user input in competitive coding?
    Sir, please reply!!!

  • @neelshah4812
    @neelshah4812 Před 3 lety

    great video

  • @kunwaranas24
    @kunwaranas24 Před 3 lety

    Thankyou sir 😊

    • @Pepcoding
      @Pepcoding  Před 3 lety

      agar aapko content pasand aa rha hai to ek review de dijie please
      g.page/Pepcoding/review?rc

    • @kunwaranas24
      @kunwaranas24 Před 3 lety

      @@Pepcoding ji bilkul sir

  • @sachinkun21
    @sachinkun21 Před 3 lety +1

    Humne ghabraana nai hai, haar nai manani, Humne sirf Faith Rakhna hai and Faith ko Expectation se connect krna hai.

  • @Noob_Engineer3001
    @Noob_Engineer3001 Před 4 lety +3

    Sumit bhaiya str length has been given as constraint in the question to uska use kare na

  • @itz_me_imraan02
    @itz_me_imraan02 Před 2 lety +1

    Dusre to sirf padhate hai,sir feel kra dete hai....💖

    • @Pepcoding
      @Pepcoding  Před 2 lety

      Glad that you love our explanation.
      Visit nados.pepcoding.com and sign up to NADOS, for better experience, precisely arranged content.
      Don't forget to follow us on Instagram instagram.com/pepcoding/

  • @sukhmansindhi2920
    @sukhmansindhi2920 Před 3 lety

    Sir, if i declare "codes" array in main and pass it to the getKPC(String s, String[] codes) like this in each call... How does it would affect Space Complexity in general?

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      koi nuksan nahi hoga, same rahegi. pass nahi kia aur har function call mei bnaya tab badhegi

    • @sukhmansindhi2920
      @sukhmansindhi2920 Před 3 lety

      @@Pepcoding thank you sir.. Because of you I am now able to solve these recursive problems on my own....

  • @vaibhavagarwal9055
    @vaibhavagarwal9055 Před rokem +1

    wrong answer not working on leetcode

  • @jayat4702
    @jayat4702 Před 4 lety +4

    sir , level-up course bhi youtube pe ayega?

  • @sagarrai1282
    @sagarrai1282 Před rokem

    it will not give answer for empty string

  • @Anand-zg6jv
    @Anand-zg6jv Před 2 lety +1

    "balti mai magga magge mai pani nhi" wah sir 😅

  • @tanyachhabra5537
    @tanyachhabra5537 Před 2 lety

    can someone pls share cpp code ?

  • @Prodcater
    @Prodcater Před 2 lety

    Anyone having java Leetcode solution .1 test case is Failing

  • @kuldeepnarayanminj
    @kuldeepnarayanminj Před 4 lety +1

    sir, it should be pure recurssion ? u used loop ? why ?

    • @Pepcoding
      @Pepcoding  Před 3 lety +2

      yes but loop is used for different purpose

  • @candyman6846
    @candyman6846 Před 2 lety

    me toh login karne se pehle back jaake code copy kar leta hu...but its really annoying har bar logout ho jata h

  • @foodTeRecipe
    @foodTeRecipe Před 3 lety +2

    if we run this code for " " this case the output will be [" "] but the right answer should be [ ], how can i improve this can anybody help.

    • @utsavgupta746
      @utsavgupta746 Před 3 lety +1

      Return empty vector krdo aur jab vector recieve kr rhe toh check krlo if mres.size() ==0 phir push krdo usme empty string. I hope u will get it 🙂

    • @511-neelbutani9
      @511-neelbutani9 Před 3 lety

      @@utsavgupta746 bhai kese ?

    • @Prodcater
      @Prodcater Před 2 lety +1

      @@511-neelbutani9 in java how to do this?

    • @harcharansingh1997
      @harcharansingh1997 Před rokem

      @@Prodcater did you find solution

  • @shubhampokhriyal8491
    @shubhampokhriyal8491 Před 4 lety +1

    Sir web development k coarse bhi aega CZcams p??

  • @hinamankani5319
    @hinamankani5319 Před 3 lety +1

    One doubt sir, what is the purpose of using static here: 'static String codes' instead of just 'String codes'

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      beta jo static bnaya wo sare functions mei global variable ki tarah mil jaega.

    • @hinamankani5319
      @hinamankani5319 Před 3 lety

      @@Pepcoding sir phir 'public' ka kya use hota h 'public static void' me

    • @letsdoeverythinginoneweek9398
      @letsdoeverythinginoneweek9398 Před 3 lety +1

      @@hinamankani5319 likh bhi sakta ha or nahi bhi dono ma chalega
      vaisa agar class public ha toh public likhna ma koi dikkat nahi ha

  • @NikhilKumar-of5gb
    @NikhilKumar-of5gb Před 4 lety +1

    I am looking forward to join ur placement course, how can I approach you?

    • @Pepcoding
      @Pepcoding  Před 4 lety

      We will do one around October. Announcement will be don eon the channel.

    • @NikhilKumar-of5gb
      @NikhilKumar-of5gb Před 4 lety

      @@Pepcoding I have sent a msg on pepcoding whatsapp no., Can u PLZZ reply there, I wanted to talk something

  • @anjneykumarsingh4461
    @anjneykumarsingh4461 Před 4 lety

    Mereko sir kccha wale p hi smjh ajata h age kyunki bdi lmbi hoti h

  • @amitdubey7544
    @amitdubey7544 Před 3 lety

    balti me magga magge me pani nhi hai now , ill remeber

  • @__RohitDevar
    @__RohitDevar Před 3 lety +2

    leet code soln in cpp
    class Solution {
    public:
    const vector pad = { "" , "" , "abc", "def", "ghi", "jkl",
    "mno", "pqrs", "tuv", "wxyz" };
    vector letterCombinations(string digits) {

    if( digits.length() == 0)
    {
    vector v= {};
    return v;
    }
    char c = digits[0];
    vector < string > v = letterCombinations(digits.substr(1));
    string s = pad[c - '0'];
    vector < string > temp;
    if(v.size() == 0)
    {
    for(int i=0;i

  • @micekey8401
    @micekey8401 Před rokem

    *Code in python for reference*
    def kpc(arr: list, s: str) -> list:
    if len(s) == 0:
    return " "
    first = int(s[0])
    remainingKpc = kpc(arr,s[1:])
    result = []
    for letter in arr[first]:
    for i in remainingKpc:
    result.append(letter+i)
    return result
    arr = [".;", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tu", "vwx", "yz"]
    print(kpc(arr,"123"))

  • @govindsinghshekhawat8533

    Respect++;

    • @Pepcoding
      @Pepcoding  Před 2 lety

      Hope you love the explanation, for better experience and well organised content visit - nados.io

  • @vishalkushwaha5373
    @vishalkushwaha5373 Před 3 lety +2

    22:23 han sir mera bhi hua hai bhut baar. XD

  • @SCRIPTSAG
    @SCRIPTSAG Před 3 lety

    Sir khud se nhi soch pa rhe hai question samghane pe samgh aa jata hai

    • @Pepcoding
      @Pepcoding  Před 3 lety

      beta foundation mei chinta na karo. level2 dsa tak thinking ban jaegi

  • @__RohitDevar
    @__RohitDevar Před 3 lety

    My fear to recursion is no more now...all Bec of sumit bhiya.....

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      czcams.com/users/Pepcodingabout?view_as=subscriber

  • @raghavendrasagar5139
    @raghavendrasagar5139 Před 2 lety

    Anyone submitted this on leetcode?

  • @manishkumarprasad1911
    @manishkumarprasad1911 Před 3 lety

    balti me magga hai, magge me pani nhi hai. nice example..

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Haha..thanks buddy😋
      If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )

    • @manishkumarprasad1911
      @manishkumarprasad1911 Před 3 lety

      SURE. Even I have shared link of pepcoding to our friend circle. thanks a lot to helping us.

  • @shreeshree108panchwatidurg3

    sir mere c++ code mey brackets and commas nahi aarhe

  • @shreshthdimri5685
    @shreshthdimri5685 Před 3 lety +1

    Koi cpp code share kardo plz 🥺

  • @tejaskadam1889
    @tejaskadam1889 Před rokem +1

    without looking into solution i am not able to solve problems

    • @tejaskadam1889
      @tejaskadam1889 Před rokem

      started watching from first video of recursion and then able to solve it on my own

  • @saurabhjejurkar5065
    @saurabhjejurkar5065 Před 2 lety

    Leetcode problem solution:
    class Solution {
    private static String[] codes=new String []{"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
    public List letterCombinations(String digits) {

    if(digits.length()==0){
    List bans=new ArrayList();
    // bans.add(""+codes[0]);
    return bans;
    }

    return solve(digits);

    }

    public List solve(String digits) {

    if(digits.length()==0){
    List bans=new ArrayList();
    bans.add("");
    return bans;
    }

    char ch=digits.charAt(0);
    String ros=digits.substring(1);

    List res=solve(ros);
    List ans=new ArrayList();

    String codesforch=codes[ch-'0'];
    for(int i=0;i

  • @anjneykumarsingh4461
    @anjneykumarsingh4461 Před 3 lety

    Kch nhi ka kuch toh kuch hi hota h (basecase)

  • @shobhitp
    @shobhitp Před 2 lety

    Balti hi khali hai.......balti me mugga hai pr mugge me paani nhi hai.....Hilarious 😂

    • @Pepcoding
      @Pepcoding  Před 2 lety

      Hahahaa! For much better experience check out :- nados.pepcoding.com

  • @dheerajyadav9099
    @dheerajyadav9099 Před 3 lety

    13.34 ye kya ghatiya bat kar rahe ho😂 nice

  • @bhatnagarcapital
    @bhatnagarcapital Před 3 lety

    230 likes 1 dislike

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Need more support from you people as this will help us in reaching out to more people and help a lot of other students as well