Print All The Permutations Of A String Using Recursion | FREE DSA Course in JAVA | Lecture 41

Sdílet
Vložit
  • čas přidán 4. 01. 2023
  • We have to print all the permutations of a given string in java using recursion.
    So far we have solved so many questions around printing all elements, subsequences etc using recursion that you brain must now be wired in such a sense that when you see a question like this you must start thinking recursively.
    This program of printing all the permutations of a given string can be solved recursively as it satisfies the basic 3 conditions of recursion.
    Let's see how we can solve this program and write a program in java to print all the permutations of a given string.
    Subscribe to our channel for regular updates on the dsa course and click on the bell icon to never miss an update from our dsa course.
    Data Structures and Algorithms Free Course (Learn DSA Without Paise) Playlist - • Data Structures And Al...
    For more information, fill this form: forms.gle/8eiUmM92Fx563Aen9
    or call us at 8884881203
    Facebook: / thetapacademy
    Instagram: / tapacademy_online
    Linkedin: / 73820805
    Website: www.thetapacademy.com​
    #dsa #dsacourse #java #dsainjava #javaprogramming #coding #coder

Komentáře • 72

  • @user-ov4vi2xb6s
    @user-ov4vi2xb6s Před 10 měsíci +11

    Wow, this channel is a hidden gem for DSA enthusiasts! The quality of explanations and content here is top-notch. I've learned so much, and I highly recommend it to anyone looking to master DSA. Keep up the fantastic work, and I can't wait for more videos!

  • @srin42
    @srin42 Před rokem +28

    woww ! What a beautiful explanation. I watched over 50 youtube videos , read many websites but still I have not understood permutation.I really liked AR and the steps like 1-1 , 1-2 ... + and why it not work if dont put the backtrack line .That failed case ( with out 3rd line) helped me alot to understand.. My brother is IIT CS student, still he could not explain this permutation clearly as you did. Oh my god... please do more videos.. You will beat all youtube channels ... your subscribers will explode soon. Please keep doing.... these videos.. dont think you will get many subscribers. .. just keep doing by the end of year.. you will see the result. I will also suggest this channels to friends.

    • @TAPACADEMY
      @TAPACADEMY  Před rokem +8

      Thanks a lot for the appreciation. These good comments are our fuel to do good work for the student community. Keep supporting Tap Academy.

    • @MRPRK365
      @MRPRK365 Před rokem +2

      @@TAPACADEMY wow, what a great explanation, after watching 5 to 6 videos on this topics i can say this this the best explanation. I am also saying that "You will beat all CZcams channels"

    • @Liku108
      @Liku108 Před 10 měsíci

      But I can't understand how I returned from 2nd to first step😭😭 any one help me

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

      Same happened with me. Watched countless videos but no one explained dry run better than him. Take a bow

  • @ArunKumar-il7hv
    @ArunKumar-il7hv Před 8 měsíci +1

    you have explained very well ,after 2 days i am able to find this video ,to the point ,no nonsense and no rush.

  • @PrashantKumar-fk8le
    @PrashantKumar-fk8le Před 10 měsíci

    Bestest Explanation on CZcams for Sure.Much Better than Hyped Channels,No words ,simply best .

  • @RajKumarSingh-bq6ji
    @RajKumarSingh-bq6ji Před 6 měsíci +4

    Seriously I was ignoring this channel for its long duration of some videos (specially what i searched for) now i regret.... Ur explanation is so good... It's completely worth of the time❤. This channel and it's content is ahead of its time❤.

  • @atharvatirkhunde4517
    @atharvatirkhunde4517 Před 8 měsíci +1

    Awesome !!!!!! No words I understood concepts from diffrent videos also but the level of visualization is next level . Hatsofff sir , Thanks a lot,

  • @shivaprasadsanikop3908

    i nowhere found the explaination of recursion problems with this detail... keep going sir you nailed it...!!!!

  • @prakhar3964
    @prakhar3964 Před rokem +3

    Amazing…simply brilliant.. can’t come up with words as
    how beautifully you explained everything 🔥🔥.. keep up the good work sir and I would highly recommend this channel to my friends

  • @pkyadav6230
    @pkyadav6230 Před rokem

    This video is currently most valuable and most comprehensive video on CZcams. If you are still not understanding....then first you should understand the basics of recursion call....
    But the thing which was lagging in the video was the stack frames which were created during the execution of the program...those who know this this video is blessing for them... great visualisation...❤

  • @saranshkapoor2969
    @saranshkapoor2969 Před 5 měsíci

    This is the best channel for dsa for java ,
    Absolutely loved the way you teach sir

  • @pragatimishra1086
    @pragatimishra1086 Před 10 měsíci +2

    your explanation are amazing🤩.I watched multiple vedios but i am not able to connect with logic and with your explaination i am able to understand thank you very much sir.

  • @AravindKumar-lj7kx
    @AravindKumar-lj7kx Před rokem

    This is the best tutorial i have watched in backtracking

  • @user-cd4xq2jc4l
    @user-cd4xq2jc4l Před měsícem

    The best explanation on this permutation question u can find on youtube !!!!!!!!!!! thanks for this amazing video.☺

  • @GAMINGZONE-ef7ty
    @GAMINGZONE-ef7ty Před 2 měsíci

    Great explanation of recursive permutations problem i nerver seen anyone in whole CZcams who explained better than this thank you...!

  • @saranshkapoor2969
    @saranshkapoor2969 Před 5 měsíci

    Sir please don't stop and keep going and prepare a complete dsa course for us ,its tooooo much needed

  • @NavyasreeBolleboyana
    @NavyasreeBolleboyana Před 4 měsíci

    No words to describe how happy Iam after knowing the solution in detail. Thankyou so much

  • @COOLBOY-my8yt
    @COOLBOY-my8yt Před rokem +6

    Keep Going Sir You are such a hardworking and inspiring guy for all of us. when we lost hope in some concept that we can't able to learn you comes up with light which removes all the darkness..!!! Thanks a lot..

  • @softwareengineering101

    Best explanation on the CZcams so far🔥🔥

  • @vishalshivkumar9936
    @vishalshivkumar9936 Před 5 měsíci

    The Best video on permutation . hats off

  • @royalX555
    @royalX555 Před 4 dny +1

    I am becoming new subscriber just by this video 😊❤

  • @sakshikatore2407
    @sakshikatore2407 Před 10 měsíci

    If teaching is an art then you are THE ARTIST

  • @NetajiSaiSuru
    @NetajiSaiSuru Před 5 měsíci +1

    I don't have words to express way for teaching you deserve more....online platforms where we have to pay course fee didn't match your style....Keep Rocking❤‍🔥 and Do more videos.... 💌🤗 I am sure you will reach to more audience..I personally recommended many to watch this channel...

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

    very clear and concise explanation.the AR usage was wonderful

  • @AliAhmad-bh5wz
    @AliAhmad-bh5wz Před 3 měsíci

    ❤ wonderful explanation to this complicated case, thank you so much

  • @ManishBhusal
    @ManishBhusal Před 4 měsíci

    Best explanation on CZcams so far. Thanks

  • @BN-hy1nd
    @BN-hy1nd Před 6 měsíci

    That's a brilliant explanation. I used two tables, but yours is better 👍🏿

  • @abhishek_______.
    @abhishek_______. Před 7 měsíci

    Amazing 🤩.... keep making these good videos.... you'll get our support !

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

    Wow
    Your Teaching Way is Amazing
    thanks you so much

  • @user-qy1ez1gt3b
    @user-qy1ez1gt3b Před měsícem

    no words....great teaching skill...

  • @premrao5197
    @premrao5197 Před rokem

    Wah Really greatful explanation sir I understand proper but isse pahle Kai video dekha pr nhi samajh aa rha tha

  • @reenezden
    @reenezden Před 11 měsíci

    Flawless, just flawless

  • @azizullah7150
    @azizullah7150 Před rokem

    Beautifully explained.

  • @a3rdtierguy864
    @a3rdtierguy864 Před 10 měsíci +1

    I am unable to think the how recursion execution is done in this problem and i watch many vides on youtube and in my premium course but unable to got such a precise information and how every steps being performed. After this video and i am totally understand the recursion in this.

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

    Thankyou so much for explaining the solution with the code❤❤❤

  • @Ujvall
    @Ujvall Před 6 měsíci +1

    Great Expalnation

  • @divypareek8230
    @divypareek8230 Před 2 měsíci

    Others vaguely explain ,you make us visualize the approach along with why did we opt only this approach, that's why TAP academy is best,as soon as I stuck on a question on leetcode,when I see the solution has been uploaded by you,I become ensured that I will surely understand the solution

  • @Phoenix99762
    @Phoenix99762 Před rokem +1

    thanks alot sir, you explain it like it becomes so easy to think

    • @TAPACADEMY
      @TAPACADEMY  Před rokem

      You are most welcome. Do subscribe and share our content so that it can reach every student in need of quality content.

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

    Outstanding sir you are genius

  • @NSTR-yk5dz
    @NSTR-yk5dz Před 15 dny

    Great explanation ❤

  • @viralinfo8051
    @viralinfo8051 Před 10 měsíci

    I loved your explanation new subscriber alert

  • @user-rk6gy1kv5s
    @user-rk6gy1kv5s Před 10 měsíci

    superbbbbbb explaination.........

  • @kumaraswamy2411
    @kumaraswamy2411 Před rokem

    Excellent

  • @meghaghosh9009
    @meghaghosh9009 Před rokem

    💥💥❤❤too good!!🔥🔥

  • @cartube6219
    @cartube6219 Před rokem

    Please make video on behind the scence , its very fascinating to see ,how it all happens ?? how you exactly joint to alphabet even its not in front of you

  • @akashsingha2616
    @akashsingha2616 Před rokem

    Thank you!

  • @BOSS55
    @BOSS55 Před 10 měsíci

    Thanks very very much yaar etana acha kon samjhata hai ❤❤❤❤❤

  • @premrao5197
    @premrao5197 Před rokem

    Sir Java oops concepts pr video bna dijiye aap bahot achha explain krte hai

  • @vishalbairagi5364
    @vishalbairagi5364 Před rokem

    thankyou very much sir

  • @madeinscript4623
    @madeinscript4623 Před měsícem

    Thank you sir thank u so much

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

    Man ur amazing 🤩

  • @user-ii3bt1zf1v
    @user-ii3bt1zf1v Před 6 měsíci

    Thank you sir🫡

  • @start1learn-n171
    @start1learn-n171 Před 3 měsíci

    Tq😊

  • @vamsikrishnasai1682
    @vamsikrishnasai1682 Před rokem

    When will i will increment after executing all statements inside it ?

  • @032-m.muthuanushya2
    @032-m.muthuanushya2 Před 3 měsíci

    Usura koduthu solli kudukkura maree irukku 😂😂 actually intha qn puriya evvlo naal agirukku enakku 😅 thanks a lot 🎉

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

    🔥🔥🔥🔥

  • @sureshalli9602
    @sureshalli9602 Před 2 měsíci

    I wasted my time till I found ur lecture ❤❤❤

  • @shreyashpatil4196
    @shreyashpatil4196 Před měsícem

    Thanx you are great teacher 🤧🥹

  • @AnushreeS-js4mg
    @AnushreeS-js4mg Před měsícem

    Can anybody explain how i became 2 after return ?

  • @TravelTales-a
    @TravelTales-a Před 5 měsíci

    class Solution{
    private:
    void solve(vector nums, vector & ans, int index){
    //base case

    if(index >= nums.size()){
    ans.push_back(nums);
    return;
    }
    for( int i = index; i < nums.size(); i++){
    swap(nums[index], nums[i]);
    solve(nums,ans,index+1);
    //backtrack
    swap(nums[index], nums[i]);
    }
    }
    public:
    vector permute(vector&nums){
    vector ans;
    int index = 0;
    cout

  • @choulvijay8281
    @choulvijay8281 Před 4 měsíci

    i dont why this video Got Only 21k views .....

  • @333nu
    @333nu Před 10 měsíci

    "I hope ur able to think" 😂

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

    respect ++;

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

    thank you. your explain is much much better than the shit in algoexpert

  • @yarramneninikhil1299
    @yarramneninikhil1299 Před 5 měsíci

    Sir i want dsa course full course from you sir please give your contact