Get Stairs Path - Solution | Recursion | Data Structures and Algorithms in JAVA

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • 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 get Stair Path problem where we are required to find the stair path to reach the bottom most level from any level n above. For a better understanding of the Stair Path problem, click here: • Get Stairs Path - Ques...
    For a better experience and more exercises, VISIT: www.pepcoding....
    #pepcoding #programming #freeonlinecourses
    Have a look at our result: www.pepcoding....
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education

Komentáře • 213

  • @SandeshMotoVlogs
    @SandeshMotoVlogs Před 3 lety +96

    Even the paid courses cant teach this level. Lots of appreciation to u sir🙏🙏

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

      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 and Keep loving😊

  • @coderguy339
    @coderguy339 Před 4 lety +45

    at 5:35 ur old habbit of gungunana can b seen as seen in class , great sir u r having same enthusiasm in video as class!!!
    u r simply fantastic!

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

    Sumeet Sir previously, I used to go to GFG and search a topic and do those selected problems but now PepCoding Playlist laga dala to Life Jinga Lala 😂

  • @VanBhardwaj
    @VanBhardwaj Před 3 lety +33

    Amazing!!!!!!!! Sir samajh nhi aa rha ki kaise express karun. But these series are gems! I feel so overwhelmed while learning from you, I feel like crying sometimes when I understand things so easily because of the way you teach them. I hope to meet you one day in person and tell you how thankful I am to you for teaching so perfectly and making our lives easier. Teachers like you are rare to find. Thanks a ton for the efforts. :')

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

      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😊
      keep learning and keep loving Pepcoding🙏

  • @sachinfuloria6340
    @sachinfuloria6340 Před 3 lety +18

    This is the most underrated channel in you tube.

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

      Please support us by sharing us around

  • @utkarshpant5297
    @utkarshpant5297 Před 2 lety +5

    Euler explanation made it crystal clear, will never forget

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

    Sumit sir.. prabhu you are amazing you deserve Oscar 🥺🥺🙏😭

  • @abhaygupta894
    @abhaygupta894 Před 3 lety +9

    Really love the way you teach, your method gets imprinted on the memory so easily that I do not have to watch it again and again as everything becomes so clear the first time itself. You are so great for providing this content totally free. I shared it with my many friends and they also loved it and thinks so highly of you.

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

      Thankyou beta,
      I am glad you liked it. I also hope that you are watching till end.
      If you like our efforts, will you like to write a few words about us here -(www.quora.com/Which-is-the-best-institute-for-coding-in-Delhi)

    • @John12685
      @John12685 Před rokem

      @@Pepcoding I went to write, but the page is not present now

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

    "दमदार देसी"
    I have fourteen years of experience in software development. I can firmly say the way you taught recursion no one ever did that. It's practical and useful. I have lots of admiration and appreciation for you.
    Thanks a lot for your hard work and teaching style.
    Keep up the good work!!

    • @Pepcoding
      @Pepcoding  Před 2 lety

      THANK YOU!
      Keep learning.
      And for better experience and well organised content visit nados.pepcoding.com

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

    This is one of the best playlist for recursion,from these lectrues anyone can learn how solve recursion based question very easily,Thank you so much Sir.

  • @umber3117
    @umber3117 Před 4 lety +6

    Best channel on youtube.

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

      Thank you very much. Subscribe kijie, bell button dbaie. Aur college mei to share kar kar ke pakka dalie.

  • @CompIT0597
    @CompIT0597 Před 6 měsíci

    I was not able to understand recursion tree but Sumit Sir made easy to solve medium and hard question ❤🙏

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

    Amazing way of teaching sir .. your teaching skills are far better than that of my college professors:)

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

      Shukriya beta!
      I am glad you liked it. I hope that you are watching the videos till the end. If you like our efforts, will you like to write a review about us here - g.page/Pepcoding/review?rc

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

    Hi sir, your way of teaching and approaching a problem is amazing!

  • @AshwaniSharma-zw6wq
    @AshwaniSharma-zw6wq Před 3 lety +2

    Ab to atti krdi Sir but ab smjh aa gya😌..Thank you Sir for making available this next level content for free🔥

    • @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.

  • @pratik.784
    @pratik.784 Před rokem

    Isse shandaar aaj Tak nhi dekha tha meine amazing explaination

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

    Cheatsheet to bhot utubers ne di Ds/Algo ki ..But we want this kind of stuff..thanks a ton to u sir..🙏🙏
    U may will prove life changer for me..

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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.

  • @educationpointe.p1455
    @educationpointe.p1455 Před 4 lety +2

    Kyaa baat hai sir App toh bde rangeen mizaaz ke nikle . . .

  • @amintalukder7189
    @amintalukder7189 Před 2 lety

    Brother, you sing great as well... you are the man.. ! Real Sultan in Real world.

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

    Sir, for first time..seeing you in a T-Shirt..
    You are looking awesome! :)

  • @MohsinKhan-rv7jj
    @MohsinKhan-rv7jj Před 3 lety +7

    Explanation Level : God , I know have faith that I could learn recursion

    • @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😊

  • @satyamgupta1416
    @satyamgupta1416 Před 3 lety

    ary sir kya padhaate ho aap ,mazaaa sa kaat dete ho.social media vgrha pe bahut kam marketing h apki otherwise aapka startup pepcoding jis speed se grow kar rha h abhi uski bhi 2^n se krta . mah isliye aisa kehra hu i donot see single advertise about pepcoding ,bas youtube pe kuch question search kr rha tha ekdin to aapka channel mil gya .Der se mila thoda par mil gya yehi bahut h

  • @rahulprajesh2766
    @rahulprajesh2766 Před 3 lety

    one of the best dry run and explanation sir i have ever seen. Thank you for making Level 1

  • @Daman1628
    @Daman1628 Před 2 lety

    sir is the best, i used to be so scared of this type of coin change problems

  • @narendratechguy7140
    @narendratechguy7140 Před 3 lety

    This is the only channel that tells you actual reasoning on others there is only ratta

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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.

  • @sakshiaggarwal6199
    @sakshiaggarwal6199 Před 3 lety

    Thank you so much sir! Draw krke aap jo samjhate hain is on another level.💯

  • @bipin2966
    @bipin2966 Před 3 lety

    sir maine paid course lia hua tha but believe me apki free contents best hai unse

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Thank you so much and If you like the content could you post something on LinkedIn about us? This will help us in reaching out to more people and help a lot of other students as well
      Something like this
      Sumeet Malik from Pepcoding is making all his content freely available to the community
      You can check it out here - www.pepcoding.com/resources
      /
      Also, this is the youtube channel - czcams.com/users/Pepcodingplaylists?view_as=subscriber

  • @rajatgupta8274
    @rajatgupta8274 Před rokem

    Sir your way of teaching is really superb ...

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

    Sir why did we used exactly 3 faiths here, why not 2 or 4 or 5 or any other number.

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

      bcz in the ques its given either we can take 1 step, 2 steps or 3 steps at a time, so we take these faiths

    • @thegod835
      @thegod835 Před 3 lety

      @@kashvirelhan4544 i understood , thanks 👍

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

    as always Awesome explanation sir 🙏🙏 you are great teacher.

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

    kash Btech me aapke 10% bhi samjhane wale teacher hote to FAANG was nothing :)

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

      Beta, aisa nh h. Teachers saare he aache hote h but hm insaano ko time pr kisi cheez ki value smjh nh aati.

  • @raj_kundalia
    @raj_kundalia Před 2 lety

    Watched on 21st October, 2021 - Thanks for the video.

  • @user-pg3im9dp4e
    @user-pg3im9dp4e Před rokem

    yes sir your explanation is very helpfull thanks so much

  • @HimanshuSingh-ti6qw
    @HimanshuSingh-ti6qw Před rokem

    Sir aaj bht kuch muh par laga dia ab kabhi nhi bhulenge

  • @AdarshKumar-mf3ls
    @AdarshKumar-mf3ls Před 4 lety +1

    1. You are given a number n representing number of stairs in a staircase.
    2. You are standing at the bottom of staircase. You are allowed to climb 1 step, 2 steps or 3 steps in one move.
    3. Complete the body of getStairPaths function - without changing signature - to get the list of all paths that can be used to climb the staircase up.
    .
    .
    sir question me to niche se upar jana h ...apne to upar se niche la diya.Correct me if i am wrong!
    Answer to dono me same hi aaega vaise.. to approach bhi same hoga ?

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

      hanji. question badal ke bhi paths to same he aaenge. jo upar se neeche jane ke raste hain wo same follow karke neeche se upar bhi to ja he sakte hain

  • @AnilGola-dc7sl
    @AnilGola-dc7sl Před rokem

    pyar dharti par farishto se kiya nahi jaata....voice toh acchi hai

  • @Krishna-rt5yf
    @Krishna-rt5yf Před 2 lety

    Your way of teaching is amazing sir. Thanks a lot for helping us .

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

      Glad you liked it!
      Keep learning.
      And for better experience, visit nados.io, where you will get well curated content and career opportunities.

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

    public static ArrayList getStairPaths(int n) {
    if(n

  • @V_vlogs___
    @V_vlogs___ Před 9 měsíci

    Sir, in arrayList, why have you taken string as the datatype even thou we are using integer here?

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

    Sir, there is a doubt. in question, it is given that you can jump 1 step or 2 steps or 3 steps, but there not mentioned that you can just stand there. so why you have included the 0th step as one,

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

    Brilliant explanation sir. another great masterpiece from u

  • @Abhishek_Poddar
    @Abhishek_Poddar Před 3 lety

    A very rare view of sumit sir chilling while coding on lofi beats 5:38 😍😍😍😍🌹

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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 )

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

    True love for pepcoding

    • @Pepcoding
      @Pepcoding  Před 3 lety

      keep motivating, keep learning and keep loving Pepcoding😊

  • @tushar_kushwaha
    @tushar_kushwaha Před 3 lety

    Sir kya padate ho aap.. awesome..
    Thank you sir.

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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 )

  • @hemantsingh-zo3iw
    @hemantsingh-zo3iw Před 4 lety +3

    Very well explained Sir,

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

    thoda bhari ho rha h..par maza aa rha hai..all thanks to u sir

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

      beta, mehnat karni hai. Koshish karke roj baithna hai, thode dino mei asaan lagega.

    • @neelshah4812
      @neelshah4812 Před 3 lety

      @@Pepcoding ji sir

  • @Jv_Singh37
    @Jv_Singh37 Před 3 měsíci

    what a effort 😮

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

    just wondering, what will be the time and space complexity will be for this solution

  • @pankajjaiswal312
    @pankajjaiswal312 Před 4 lety

    @pepcoding I am so glad that I have a mentor like you. you are such a nice soul there is a little feedback from my side is that please discuss the space and time complexity in your videos this is much-needed rest of thing is so great.

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

      Thank you so much!! will be doing complexity analysis later

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

    Why we consider only (n-1),(n-2),(n-3) , we cannot consider (n-4)

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

      as per the question we can move 1,2 or 3 steps only at max

  • @avinashgodvin9900
    @avinashgodvin9900 Před rokem

    Very good explanation , sir . Thanks !

  • @mrmirzaa
    @mrmirzaa Před 2 lety

    11:32
    zero v sidhi se zero v sidhi jane ka rasta hota h ki chalo hi mat 🤣🤣🤣
    Bahut sahi sir
    Thanks sir for these amazing videos.😊

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

    sir foundation ke question khud ni bnn rhe aapki videos dekho to firr samaj aa jaate hai kya kru?

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

      Bilkul koi burai nahi hai. Aise dheere dheere aapki ungliyo se code nikalne lagega.

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

    I did not know how to think like that. So zyadatar jab edge cases aate jaise n

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

    The best part is when he sings when he codes

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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

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

    khudse try karte karte hi ban gaya

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

    What if we want to count number of paths without using arraylist

  • @alltechsimplified2134
    @alltechsimplified2134 Před 3 lety

    did this on my own in 15-20 min :)

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

    Sir, why in the Faith, 3 case are discussed (n-1), (n-2), (n-3). It could have been more or less?

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

      Iss question ke anusar 3 he immediate jumps allowed hain

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

      You are allowed to climb 1 step, 2 steps or 3 steps in one move.

  • @travel2react567
    @travel2react567 Před 3 lety

    Pepcoding is the new GFG

  • @shakyasachinkumaratarsingh7266

    God level Explaination !!

    • @Pepcoding
      @Pepcoding  Před 2 lety

      for better experience why don't you use this same content on nados.pepcoding.com?

  • @AKASH-sw9bs
    @AKASH-sw9bs Před 3 lety +2

    Thanks sir ji.
    But i wanted to take a course from your training center. I am from bangladesh.
    Once i asked for query but sir ji i didn’t got satisfying ans.

  • @IamDemotivated
    @IamDemotivated Před 2 lety

    God or what♥️

  • @IOVarunRatnani
    @IOVarunRatnani Před 3 lety

    Just one word amazing

  • @faizan346
    @faizan346 Před 3 lety

    vector getStairsPath(int n) {
    if(n == 0) {
    vector mres;
    mres.push_back("");
    return mres;
    }
    vector mres;
    for(int i = 1; i

    • @faizan346
      @faizan346 Před 3 lety

      lol i did for n number of stairs.

    • @faizan346
      @faizan346 Před 3 lety

      void printStairsPath(int n, string path) {
      if(n == 0) {
      cout

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

    Really an awesome video

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

      Thankyou beta!
      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 )

  • @shrutibharti2848
    @shrutibharti2848 Před 2 lety

    Why are we using string type of arraylist and why not integer arraylist?

    • @Pepcoding
      @Pepcoding  Před 2 lety

      For better insight, visit nados.io, post your doubts, community will help you out there.

  • @potato-gi1xr
    @potato-gi1xr Před 2 lety

    thank you so much sir.🙏🙏

  • @yashverma9455
    @yashverma9455 Před 3 lety

    Why would to take only three array list of(n-1)and (n-2) and (n-3) you can also take (n-4) or done with only two ?

    • @userre85
      @userre85 Před 3 lety

      You are allowed to climb 1 step, 2 steps or 3 steps in one move.

  • @ThatRitikPatel
    @ThatRitikPatel Před 3 lety

    Maja agya bhidu❤❤❤❣❤❤❤💖🧡🧡🧡

  • @pankajtiwari9031
    @pankajtiwari9031 Před 2 lety

    Sir , why do we need this calls for paths?

  • @vikaskumarnitrr
    @vikaskumarnitrr Před 3 lety

    god level explanation !!!

    • @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😊

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

    Sir, I am struggling with the time and space complexity for this code.....can you explain it?

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

      beta mai ek din rat ko 10 pm wale webinar mei time and space discuss karunga detail mei.

    • @deveshkumar6533
      @deveshkumar6533 Před 4 lety

      @@Pepcoding okh sir thanks

    • @LegitGamer2345
      @LegitGamer2345 Před 3 lety

      @@Pepcoding is it exponential ?

    • @LegitGamer2345
      @LegitGamer2345 Před 3 lety

      @@Pepcoding sir can we say that jab bhi recursive tree banega tab exponential time complexity hogi (generally)? jaise hum log array traversal ko generally order of n bolte hai waise ?

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

    bhiaya iska ArrayList ka type string hai toh ye integer kaise return kar rah hai sorry agar apko bekar laga doubt to

    • @Pepcoding
      @Pepcoding  Před 4 lety

      ArrayList of String he return kar rha hai. String mei integer to daal he sakte hain. Jaise "1234" is a string while 1234 is an integer.

    • @SCRIPTSAG
      @SCRIPTSAG Před 4 lety

      Are sir basically jeb hem apna gher string ke liye bna rhe hai to usme int as string jayega esliye sir ne data type uska string rakha hai leptop me aap kerke dekh lijiye koi example leker

  • @krishsharma162
    @krishsharma162 Před 2 lety

    I'm coding in c, but arraylist is not in c, so can u give me some hint how can I code in c

  • @ShubhamRaj-tm9ui
    @ShubhamRaj-tm9ui Před 3 lety

    Very nice explanation.

    • @Pepcoding
      @Pepcoding  Před 3 lety

      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.
      Will you like to write a few words about us here - g.page/Pepcoding/review?rc

  • @dhruvtrehan8132
    @dhruvtrehan8132 Před 4 lety

    Sir, can u please post one of the solution video of any of these question in c++, so that we get an idea of how to do it with a help of vector, as i am coding in c++

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

      will be doing everything in c++ in second iteration of the content

  • @rohit.1232
    @rohit.1232 Před 3 lety

    maza aayga pdna ab

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

    Sir till which month Foundation and Level up will be completed on CZcams.

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

    Why did we stop at n-3 and not go further. For example to n-4, n-5 etc..

    • @Shravankumar-wc2oi
      @Shravankumar-wc2oi Před 3 lety

      Question itself was saying that we can either take 1 or 2 or 3 steps so....

  • @srinayclg390
    @srinayclg390 Před rokem +1

    GOD💙

  • @Beingyash7
    @Beingyash7 Před 3 lety

    THE LEGEND !

  • @samegum9624
    @samegum9624 Před 2 lety

    Whoever came here after question in CN thumbs up!!

  • @YugNirman15
    @YugNirman15 Před 3 lety

    sir in question it saying for climbing to stairs not to go down the stairs.

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Beta, vo problem ko analyse krne ka tarika h.

  • @neha6000
    @neha6000 Před rokem

    Hi sir how can we define how many recursion function we have to declare

    • @John12685
      @John12685 Před rokem +1

      Apko jo allowed hain steps to take utne hi recursion calls lagani hain.
      Like u r allowed in this question to take 1 step at a time, u can take 2 steps at a time or u can take 3 steps at a time. So these are total of 3 options (1,2,3). That's y 3 recursion calls to define. So it deoends on options.

    • @John12685
      @John12685 Před rokem

      @neha6000

    • @nivealokhande2153
      @nivealokhande2153 Před rokem +1

      @@John12685 aree toh ese infinite option hote toh kbtk likhte rhte

  • @jigarlove2113
    @jigarlove2113 Před 3 lety

    Dhanyawad sir. kya saalintaa hai aapme.

  • @pankajbisht897
    @pankajbisht897 Před 3 lety

    Brilliant

  • @shivamrajput1752
    @shivamrajput1752 Před 3 lety

    isme DP bhi use kar sakte hain

  • @gmgrhythm2284
    @gmgrhythm2284 Před 3 lety

    ArrayListpaths=new ArrayList();
    how its work
    anybody plz explain this
    I don't know much about java

    • @GALISUBHASHKARTHIKBCE
      @GALISUBHASHKARTHIKBCE Před 3 lety

      Here, we are creating an arraylist of strings which is named as paths; so that when we pass through getStairPaths function, after execution of code, the output is return to this arraylist and printed.

    • @gmgrhythm2284
      @gmgrhythm2284 Před 3 lety

      @@GALISUBHASHKARTHIKBCE thanku

  • @shubhamaptekar7748
    @shubhamaptekar7748 Před 3 lety

    Thank you so much sir

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Keep learning and keep supporting😊
      If you like our efforts, will you like to write a review about us here - g.page/Pepcoding/review?rc

  • @pratyush__agarwal
    @pratyush__agarwal Před 3 lety

    Awesome ❤️

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Keep learning and keep supporting Pepcoding😊

  • @om5573
    @om5573 Před rokem

    Sir can c++ guy ,watch your playlist?

  • @Hemanthkumar-ck1zu
    @Hemanthkumar-ck1zu Před 2 měsíci

    Why did we take 3 paths here?

  • @suryanshomar2212
    @suryanshomar2212 Před 3 lety

    Sir why we set all instructions in post order

  • @SCRIPTSAG
    @SCRIPTSAG Před 4 lety

    Sir 2 bar dekha thinking samgh aa gyi ki kyo postorder liya kyo tree bnayi and also faith and expection kaise chel rhe hai milker aisha lag rha hai alag hi level pdate ho

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

      tumse milke aisa lga.. tumse milke armaan hue poore dil ke.. la la la!
      To share karein aur subscribe karein bhot jald

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

    patience == sumeetSir

    • @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
      For clearing your doubts, you can join our community on telegram
      t.me/pepcoding

    • @nknidhi321
      @nknidhi321 Před 3 lety

      @@Pepcoding I'm already a subscriber ❤️ Review posted !! And thanks for the telegram link..🙌

  • @SumitSingh-ui4do
    @SumitSingh-ui4do Před 2 lety

    Thanku sir❤️❤️

  • @DhananjayKumar-vn5tc
    @DhananjayKumar-vn5tc Před 2 lety +1

    op sir

  • @yoyo8293
    @yoyo8293 Před 4 lety

    Sir yeh kaise pata lagega ki kab kaam inorder me karna hai ya postorder me ya preorder me?

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

      By practicing different types of questions

  • @MeArpit_715
    @MeArpit_715 Před 6 měsíci

    5:35 better than tony kakkar