Re 2. Problems on Recursion | Strivers A2Z DSA Course

Поделиться
HTML-код
  • Опубликовано: 23 дек 2021
  • Check our Website:
    Notes:
    Understand recursion by printing something N times: takeuforward.org/recursion/in...
    Print name N times using recursion: takeuforward.org/recursion/pr...
    Print 1 to N using recursion: takeuforward.org/recursion/pr...
    Print N to 1 using recursion: takeuforward.org/recursion/pr...
    Sum of first N numbers: takeuforward.org/data-structu...
    Factorial of N numbers: takeuforward.org/data-structu...
    Reverse an array: takeuforward.org/data-structu...
    Check if a string is palindrome or not: takeuforward.org/data-structu...
    Fibonacci Number: takeuforward.org/arrays/print...
    In case you are thinking to buy courses, please check below:
    Link to get 20% additional Discount at Coding Ninjas: bit.ly/3wE5aHx
    Code "takeuforward" for 15% off at GFG: practice.geeksforgeeks.org/co...
    Code "takeuforward" for 20% off on sys-design: get.interviewready.io?_aff=takeuforward
    Crypto, I use the Wazirx app: wazirx.com/invite/xexnpc4u
    Take 750 rs free Amazon Stock from me: indmoney.onelink.me/RmHC/idje...
    Earn 100 rs by making a Grow Account for investing: app.groww.in/v3cO/8hu879t0
    Linkedin/Instagram/Telegram: linktr.ee/takeUforward
    ---------------------------------------------------------------------------------------------------------------------------------------------------- Check Codestudio: bit.ly/3G61sZZ
    Please check out the entire channel for other sets of series on tougher and complex topics. Also do consider subscribing :)
    Please check out the SDE sheet which the entire country is using and getting placed at top-notch companies: takeuforward.org/interviews/s...
    Checkout Striver's Handles: linktr.ee/takeUforward

Комментарии • 1,1 тыс.

  • @takeUforward
    @takeUforward  2 года назад +328

    Please do comment how was it ? :)

    • @DurgaShiva7574
      @DurgaShiva7574 2 года назад +6

      public class recursiveCode {
      public static void main(String[] args) {
      //print n to 1 using backtrackign, i.e without using n-1 approach
      backTrack(0,4);
      }
      static void backTrack(int start, int n)
      {
      if (n == start)
      {
      return;
      }
      backTrack(start+1,n);
      System.out.println(start+1);
      }
      }

    • @sehejwahla5437
      @sehejwahla5437 2 года назад +3

      void f(int i, int j){
      if(i==-1) return;
      f(i-1, j);
      if(i==j) return;
      cout

    • @PRABHATKUMAR-ek5cu
      @PRABHATKUMAR-ek5cu 2 года назад +2

      Thanks striver for this series, waiting for DP series

    • @rishavkavlog
      @rishavkavlog 2 года назад +16

      As always fantastic
      Soln:
      #include
      using namespace std;
      void print(int i, int n)
      {
      if (i > n) return;
      print(i + 1, n);
      cout N;
      print(1, N);
      return 0;
      }

    • @sehejwahla5437
      @sehejwahla5437 2 года назад

      Bhai thank u so much. Only coz of u i am finally understanding recursion and backtracking

  • @anutoshghosh7893
    @anutoshghosh7893 Год назад +93

    In recursion while going, things happen while in backtracking, in coming back things happen, that's why the term backtracking, so well explained!!

    • @satviikk
      @satviikk 3 месяца назад +4

      i missed it, thanks'

  • @vaishnaviupadhyay2239
    @vaishnaviupadhyay2239 Год назад +114

    Code for printing N to 1 using backtracking concept:
    #include
    using namespace std;
    void print(int n , int i)
    {
    if(n

    • @deepchangani2004
      @deepchangani2004 Год назад

      Bro i didn't understand how this code was executed if we write i +1 then why code was not starting from 1 to n? Please give answer

    • @pwnified1736
      @pwnified1736 Год назад +28

      @@deepchangani2004 bhai isten to what striver said he said ki aap print ko pehle likhne ke jagah function ko wapis call kar rhe ho toh woh jo number pehle print hona tha last mei print hoga and so on...jasa n= 4 then woh stack mei store hote jaega in order 1,2,3,4 uske baad jab base case reach hoga toh woh function call karte rahega so order will be changed to 4,3,2,1 😉

    • @user-ri5gw3ty1y
      @user-ri5gw3ty1y Месяц назад

      Nice answer, it does require two vars...

    • @jitendrabaravkar
      @jitendrabaravkar Месяц назад +2

      ​@@user-ri5gw3ty1y
      #include
      using namespace std;
      void f(int cnt, int n) {
      if (cnt == 0) return;
      cout n;
      cnt = n;
      f(cnt, n);
      return 0;
      }

    • @manashpratimbhowmick7211
      @manashpratimbhowmick7211 Месяц назад

      @@deepchangani2004 notice carefully void function k bad wo firse bar bar function ko call karrha ha jis karan use print karne ka mauka hi nahi milraha in short print line hit he nahi karraha ha and jab wo base condition ko hit karega last m tb jab wo back jayega yafir backtrack krega har function m tab wo ak ak kar k print krega .

  • @akash5653
    @akash5653 2 года назад +81

    This gave me some confidence and understanding of Recursion. Thank You so much!

  • @rohitsrivastava3768
    @rohitsrivastava3768 2 года назад +170

    Dude you are underrated, amazing amount of effort it takes!

  • @vm1662
    @vm1662 Год назад +5

    Can't believe all of this is for free!!! Thank you so much take U forward team!

  • @deepakagrawal2392
    @deepakagrawal2392 2 года назад +182

    For the problems #3 and #4, you don't need to pass two parameters. f(i) will be sufficient!

    • @nikhildotasara8788
      @nikhildotasara8788 Год назад +16

      I think for the first one only one parameter is enough.But for the second one i have used two.

    • @omkarraskar8664
      @omkarraskar8664 Год назад +6

      @@nikhildotasara8788 for second too you can do with 1 parameter

    • @lakshmivenkatavarun8406
      @lakshmivenkatavarun8406 Год назад +1

      @@omkarraskar8664 How bro?

    • @ramanahlawat398
      @ramanahlawat398 Год назад +5

      @@nikhildotasara8788 u r correct bro we need another parameter in #5th problem

    • @mahadevgopanpalli6194
      @mahadevgopanpalli6194 Год назад +18

      @@ramanahlawat398 for all problems only one parameter is sufficient bcoz if we see every prob statement clearly
      Although, he was teaching , so he need to take such example

  • @Ironman2.0xCode
    @Ironman2.0xCode Год назад +8

    With each passing vdo of Striver bhaiya i saw , I am becmoing fan of him. When it comes to DSA i always recmmmend to watch Striver's vdo to my friends and juniors. The clarity in each topic is just wow.

  • @kushagraahire1871
    @kushagraahire1871 2 года назад +19

    public static void main(String[] args)
    {
    Scanner input = new Scanner ( System.in );
    System.out.print("Enter the value of n : ");
    int n = input.nextInt();
    int i=1;
    printNumbers(i,n);
    input.close();
    }
    static void printNumbers(int i , int n )
    {

    if(i>n)
    {
    return;
    }
    else{
    printNumbers(i+1,n);
    System.out.println(i);

    }
    }
    }
    You are one of the best DSA tutor

  • @akhileshsaga217
    @akhileshsaga217 2 года назад +163

    Question 5 - Java Code :
    public class PrintNumbersinReverseUsingBackTracking{
    static void reverse(int i,int N){
    if(i>N){
    return ;
    }
    reverse(i+1,N);
    System.out.println(i);
    }
    public static void main(String args[]){
    int N=10;
    reverse(1,N);
    }
    }

    • @muhammedhuzaifa1392
      @muhammedhuzaifa1392 10 месяцев назад

      ​@clawseekgaming4681N is input and compareing with so i cant exceed the limit of i=1; other wise you will face swgmental fault error 🙃

    • @eshitakrishnet2291
      @eshitakrishnet2291 24 дня назад

      @@muhammedhuzaifa1392 didn't get u, can u explain further?

  • @bhaswatiroy1433
    @bhaswatiroy1433 2 года назад +20

    I really don't know if someone explains as good as you do !!!! 👏 Unbelievable Efforts

  • @shubhamagarwal1434
    @shubhamagarwal1434 2 дня назад

    #Free Education For All... # Bhishma Pitamah of DSA...You could have earned in lacs by putting it as paid couses on udamey or any other elaerning portals, but you decided to make it free...it requires a greate sacrifice and a feeling of giving back to community, there might be very few peope in world who does this..."विद्या का दान ही सर्वोत्तम दान होता है" Hats Off to you man, Salute from 10+ yrs exp guy from BLR, India.

  • @abhisekmishra5245
    @abhisekmishra5245 2 года назад +31

    Now I'm gaining more confidence in recursion. Amazing explaination. 😃

  • @user-ps1tn1el1v
    @user-ps1tn1el1v 4 месяца назад +8

    for N to 1
    we only need one parameter
    #include
    using namespace std;
    void print(int n){
    if(n == 0){
    return;
    }
    cout n;
    print(n);
    return 0;
    }

  • @ayushrawat9252
    @ayushrawat9252 2 года назад +20

    Question 5 -> Print no from N to 1 using backtracking
    #include
    using namespace std;
    void printName(int i , int n){
    if(i>n){
    return;
    }
    printName(i+1 ,n);
    std::cout

    • @lex-zt6uc
      @lex-zt6uc 2 года назад

      Brother why use std:: when u have imported the whole std library itself

    • @ayushrawat9252
      @ayushrawat9252 2 года назад

      @@lex-zt6uc it was auto completed by the compiler so i do not erase the std

    • @Akash-yr2if
      @Akash-yr2if Год назад

      Why std::

    • @ayushrawat9252
      @ayushrawat9252 Год назад

      @@Akash-yr2if if you are not using "using namespace std" then we have to use Std in every cin and cout

    • @Akash-yr2if
      @Akash-yr2if Год назад +1

      @@ayushrawat9252 I knw that...But even after using it in the header, Why have u used it.

  • @hemalathasunnapu750
    @hemalathasunnapu750 2 года назад +2

    The videos are absolutely from basic. Great Explanation

  • @CodingVeda
    @CodingVeda Год назад +3

    This video really boosted my confidence for recursion. Thank you so much

  • @de_ansh
    @de_ansh 2 года назад +7

    One of the best playlist on recursion, thank you so much bhaiya.

  • @timothyajani7100
    @timothyajani7100 Год назад +3

    You're a teacher. I just understood what I thought was magic

  • @kunalwadhai777
    @kunalwadhai777 8 месяцев назад +1

    Bhaiya you understand the concept of recursion in a very simple way, hats of for that and I am blessed that I can learn from such a guru.

  • @aryanpinto5105
    @aryanpinto5105 2 года назад +1

    Best video for Recursion basics on RUclips!!!

  • @travelwithmightymocha
    @travelwithmightymocha 2 года назад +7

    def backtrack(i, n):
    if i > n:
    return
    backtrack(i+1, n)
    print(i)
    backtrack(1, 5)

  • @farazfarooqui8656
    @farazfarooqui8656 Год назад +4

    Best material out their ... love the way u connected/distinguished recursion from backtracking

  • @siddhantdwivedi7024
    @siddhantdwivedi7024 2 года назад

    you completely nailed it bruhh!!!!!!!!!!! thanks for making such a beautiful series

  • @kshitijraj1320
    @kshitijraj1320 6 месяцев назад +1

    Finally understood the meaning of printing after and before function call,Thank you striver 🙌🙌

  • @NaturesVibee
    @NaturesVibee 2 года назад +32

    PRINT FOR N To 1 using Backtracking
    #include
    using namespace std;
    void print(int i, int n){
    if (n

    • @photozoa
      @photozoa Год назад

      the base condition should be if (n>3){return;}

    • @anshumann
      @anshumann Год назад

      ​@@photozoaaree kya bol rhe😂

    • @prathamasrani5608
      @prathamasrani5608 11 месяцев назад

      ​@@photozoano...

  • @yashhokte1020
    @yashhokte1020 Год назад +6

    Solution of the assignment given by you : print n to 1 using Backtracking :
    private static void print(int i, int n){
    if(i>n)
    return;
    print(i+1,n);
    System.out.println(i); // Backtracking !!
    }
    public static void main(String[] args) {
    print(1,5);
    }
    Thankyou bhaiya for making this concept in such a crystal clear way !! Loved the way u simplify the things to us , May wish you will achieve all your sky offers to you ..

    • @Iqbal00123
      @Iqbal00123 Год назад +1

      You are right brother , he is great at teaching...

    • @yashhokte1020
      @yashhokte1020 Год назад

      @@Iqbal00123 yes brother

  • @parthsalat
    @parthsalat 2 года назад +1

    Thank you.
    I understood it completely.
    May this comment make youtube feature this video to all users.

  • @coding8000
    @coding8000 2 года назад

    thanks!The Explanation of your is at God Level,Best on the internet and planet earth., Please keep doing such work.,Thanks you.Love from Mumbai. Thanks a lot.

  • @RahulKumar-rk1tf
    @RahulKumar-rk1tf 2 года назад +81

    Start at: 1:08
    Back Tracking : 15:25

  • @devarora6995
    @devarora6995 2 года назад +93

    #include
    using namespace std;
    void f(int i,int N){
    if(i>N)return;
    f(i+1,N);
    cout

    • @consolecoder6724
      @consolecoder6724 2 года назад +1

      This is head Recursion.

    • @nishantpruthi1172
      @nishantpruthi1172 2 года назад +2

      @@consolecoder6724 issi se toh krna h bro

    • @consolecoder6724
      @consolecoder6724 2 года назад

      @@nishantpruthi1172 yup.

    • @nishantpruthi1172
      @nishantpruthi1172 2 года назад +1

      @@mukulchopra3378 ohfo, coding seekhi ja rhi h, mukul chopra dwara

    • @S__Arslaan
      @S__Arslaan 2 года назад

      is there any other approach if we take both i and n equal to n ?

  • @__ngl__
    @__ngl__ 6 месяцев назад

    hi, thank you so much for this video!! i've always struggled with backtracking and for the first time ever, i felt like i understood it.

  • @abhaytiwari6411
    @abhaytiwari6411 2 года назад +1

    Thank for making such a wonderful series.

  • @Sanjeev.Network
    @Sanjeev.Network 2 года назад +4

    recurse(int N,int final){
    if(final>N) return;
    recurse(N,final+1);
    print(final);
    }

  • @sarikaabarnwal
    @sarikaabarnwal 2 года назад +6

    Class A{
    public void print(int n){
    if(n

    • @Aman-tr4bb
      @Aman-tr4bb 2 года назад

      the thing is you can not use n-1;

    • @lakshyasadhwani9694
      @lakshyasadhwani9694 2 года назад

      this is wrong brother. this will print from 1 to n

  • @TheAditya-zt9pb
    @TheAditya-zt9pb 2 месяца назад

    Loved the way you explained the concept of recursion and Backtracking ,i was able to get a clear picture of it and Thanks fot it

  • @omgaikwad5962
    @omgaikwad5962 Год назад

    Excellent teaching! understood the concept of Recursion

  • @shashanksharma7747
    @shashanksharma7747 2 года назад +13

    public static void main(String[] args)
    {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    fun(1,n);

    }
    static void fun(int i,int n){
    if(i>n)
    return ;
    fun(i+1,n);
    System.out.println(i);
    }

  • @amanbhadani8840
    @amanbhadani8840 2 года назад +6

    I don't think,we need to carry value of N with i everytime if base case dont need it.Rest explanation is amazing.

  • @afuadajoemmanuel5735
    @afuadajoemmanuel5735 Год назад

    Thanks for all you do Striver ❤

  • @Manishgupta200
    @Manishgupta200 Год назад +2

    Thankyou Striver. Before wathing this video.. in my mind, I'm feared a lot of the names say Backtracking, Segmentation, Brute force approach. .. But you cleared my doubt. Not, it's easy to analyse every term

  • @lathishgajula387
    @lathishgajula387 6 месяцев назад +4

    just do condition(i>n) return ;
    then apply function (i+1,n)
    then cout

  • @gyaneshjha19
    @gyaneshjha19 2 года назад +5

    Yaar thanks a lot striver, I was unable to understand the recursion even after doing 30 to 35 questions ,and ur this single video helped me in getting the concept easily,
    After watching this video I was like my life was lie 😂

    • @yashhokte1020
      @yashhokte1020 Год назад

      bro we are sailing on the same boat , would like to discuss something related recursion to you !! shall we?

  • @shrunkhalaraut7789
    @shrunkhalaraut7789 Год назад

    Thanks for the video. 1st time I understand the backtracking.

  • @FireGamerz-of6vv
    @FireGamerz-of6vv 5 месяцев назад

    Excellant getting confident day by day

  • @percussionistbypassion2931
    @percussionistbypassion2931 2 года назад +11

    C++ - Print N to 1 using recursion but with backtracking:
    #include
    using namespace std;
    int n, i = 1;
    void f(int x,int y);
    void f(int i,int n)
    {
    if(i>n) return;
    f(i+1,n);
    cout

  • @tanveer.shaikh
    @tanveer.shaikh 2 года назад +12

    for the third question we could have a single function call with n only

  • @ESaiCharanKNetha
    @ESaiCharanKNetha 2 года назад

    Just started watching your recursion playlist

  • @sunnybunny4395
    @sunnybunny4395 3 месяца назад +1

    if(i>n) return;
    print5(i+1,n);
    cout

  • @zorodluffy6415
    @zorodluffy6415 2 года назад +7

    #include
    using namespace std;
    void printn_1_backTracking(int n, int i) {
    if (i > n) {
    return;
    }
    printn_1_backTracking(n, i + 1);
    cout

  • @EjazAhmed-pf5tz
    @EjazAhmed-pf5tz Год назад

    def number(i,n):
    if n

  • @padmasrinivasanmanivannan
    @padmasrinivasanmanivannan Год назад +1

    def func(i,n):
    if(n

  • @aashritamutkiri5071
    @aashritamutkiri5071 2 года назад +7

    class Recursion
    {
    public static void main(String[] args) {

    int n = Integer.parseInt("5");
    printReverse(5, 5);
    }
    static void printReverse(int n, int num)
    {
    if(n == 0)
    return;

    printReverse(n-1, num);
    System.out.println(num-n+1);
    }
    }

  • @lakeshkumar1252
    @lakeshkumar1252 Год назад +4

    def f(a,b):
    if a>b:
    return
    f(a+1,b)
    print(a)
    f(1,3)
    #thanks for the content

  • @rishikeshmore5665
    @rishikeshmore5665 Год назад +1

    void print(int i, int n){
    if(i>n)return;
    print(i+1,n);
    cout

  • @user-ti3bd8mp1w
    @user-ti3bd8mp1w Год назад

    understoood
    Thank you striver for such an amazing explanation

  • @priyanshusaxena7157
    @priyanshusaxena7157 2 года назад +4

    // Use backtracking to print N to 1
    #include
    using namespace std;
    void print(int i, int N)
    {
    if(i > N)
    {
    return;
    }
    print(i + 1, N);
    cout

  • @sivaramapandiyan5117
    @sivaramapandiyan5117 2 года назад +3

    Question 5:- [Python Solution (BackTracking)]
    def printNumber(i,n):
    if(i>n):
    return
    printNumber(i+1,n)
    print(i)
    number = int(input())
    printNumber(1, number)

  • @thebackendcoder3147
    @thebackendcoder3147 Год назад

    Great video Striver
    function print(i, n) {
    if (i == n + 1) {
    return
    }
    print(i + 1, n);
    console.log(i);
    }

  • @aniketsharma472
    @aniketsharma472 11 месяцев назад +1

    for Q5 in C++
    #include
    using namespace std;
    void num(int a,int n){
    if(a>n){
    return;
    }
    num(a+1,n);
    cout

  • @radharamamohanakunnattur3035
    @radharamamohanakunnattur3035 Год назад

    Understood!! Awesome explanation

  • @pritampaul6747
    @pritampaul6747 Год назад

    def backtrackNum1(i,n):
    if i>n:
    return
    backtrackNum1(i+1,n)
    print(i)
    backtrackNum1(1,3)
    Thank you so much, Sir.

  • @riyarsharma4667
    @riyarsharma4667 2 месяца назад

    Thank You Striver!!

  • @lalitbisht8381
    @lalitbisht8381 Месяц назад

    Very nice choice of question to make the base strong❤

  • @amruthaammu7463
    @amruthaammu7463 2 года назад +2

    Wonderful series

  • @user-js1rx8rs9p
    @user-js1rx8rs9p 4 месяца назад

    thank you striver . you made my day

  • @aneezahayatshaikh3176
    @aneezahayatshaikh3176 3 месяца назад

    Really very thankful to you sir, so well explained

  • @shubhamagarwal1434
    @shubhamagarwal1434 9 месяцев назад

    Very nice explanation...God Bless You

  • @sarangkumarsingh7901
    @sarangkumarsingh7901 6 месяцев назад

    Understood awesome.....

  • @akshay84080
    @akshay84080 2 месяца назад

    amazing playlist of dsa it's like wow

  • @sakshamnda4802
    @sakshamnda4802 2 месяца назад

    void linear(int i,int n){
    if(i>n){
    return;
    }
    linear(i+1,n);
    cout

  • @abhaymishra8486
    @abhaymishra8486 Год назад

    very good explanation i have cleary understood the concept of backtracking.😎

  • @hckermanrober03
    @hckermanrober03 2 года назад

    vaiya totally clear the basic recursion😍

  • @shreyasmekap1452
    @shreyasmekap1452 5 месяцев назад

    Amazing lecture sir! Thanks a lot!!
    Last qs ans =>
    #include
    using namespace std;
    void print(int i, int n){
    if(i>n) return;
    print(i+1,n);
    cout n;
    print(1,n);
    return 0;
    }

  • @TanishGupta-hw5gs
    @TanishGupta-hw5gs Год назад

    In python(for python users :) ):
    def gg1(n,i):
    if n

  • @Nishantkumar-oh9th
    @Nishantkumar-oh9th Год назад

    For Printing the counting 2 parameters makes it complex .
    void fun(int n){
    if(n==0)
    return;
    cout

  • @ganeshv045
    @ganeshv045 Год назад

    Understood , super explanation

  • @dhirajjha29
    @dhirajjha29 23 дня назад

    void linear(int i,int n){
    if(i>n) return;
    linear(i+1,n);
    cout

  • @drishtirai864
    @drishtirai864 2 месяца назад +1

    Thank you ! Understood :))

  • @shubh13799
    @shubh13799 2 года назад +1

    def pattern(i, n):
    if i > n:
    return
    pattern(i+1, n)
    print(i)
    print(pattern(1,3))

  • @Munchen888
    @Munchen888 4 месяца назад

    Thank you for good explanation and last hometask)

  • @Mr_kp66
    @Mr_kp66 2 месяца назад

    Why we need two parameters to pass ?
    Instead we can use only one parameter by
    Void print(int i)
    {
    If(i

  • @swarnabd202
    @swarnabd202 2 года назад +1

    Python implementation of print N to 1(using backtracking):
    def printNto1(lower,upper):
    if(lower==upper):
    print(lower)
    else:
    printNto1(lower+1,upper)
    print(lower)
    printNto1(1,7)

  • @smoothierudiee
    @smoothierudiee 14 дней назад

    amazing video striver!

  • @stith_pragya
    @stith_pragya Год назад

    Thanks Striver Brother 🙏🙏🙏

  • @arnabdeb1486
    @arnabdeb1486 2 года назад +2

    #include
    using namespace std;
    void backTrack(int i,int n){
    if(i>n)
    return;
    backTrack(i+1,n);
    cout

    • @RohitRaj-hl6ji
      @RohitRaj-hl6ji Год назад

      This code is printing the numbers or only i n times??

  • @jasmeetsingh5174
    @jasmeetsingh5174 10 месяцев назад

    public class sec {
    static void f(int n,int i){
    if (i>n) return;
    f(n,i+1);
    System.out.println(i);
    }
    public static void main(String[] args) {
    int n=50;
    f(n,1);
    }
    }
    java approach for printing n to 1 using backtrack (thanks striver bro)

  • @rishabhverma7329
    @rishabhverma7329 2 года назад

    Thanks for the great content

  • @dipannita7436
    @dipannita7436 2 года назад

    helpful video. Thanks a lot.

  • @VikashKumar0409
    @VikashKumar0409 Год назад +1

    def f(i,n):
    if(i>n):
    return
    f(i+1,n)
    print(i)
    n=int(input("enter the number"))
    f(1,n)

  • @abdoo7197
    @abdoo7197 9 месяцев назад

    what a great explanation

  • @ravalikatalks5285
    @ravalikatalks5285 6 месяцев назад

    thanks alot bhaiya for the best explanation!
    😊

  • @NazeerBashaShaik
    @NazeerBashaShaik 5 месяцев назад

    Understood thank you.

  • @ashanagar5226
    @ashanagar5226 Год назад

    Thankyou so much just amazing explanation

  • @jayesh8401
    @jayesh8401 2 года назад

    Well explained 🔥

  • @CodewithKing360
    @CodewithKing360 5 месяцев назад

    void print(i,N)
    {
    if (i>N) return;
    print(i+1,N);
    cout

  • @anandkishor5737
    @anandkishor5737 Год назад +1

    In Python:
    def recurse(i,n):
    if i > n: return
    recurse(i+1,n)
    print(i)
    recurse(1,5)

  • @chitrankusarkar7278
    @chitrankusarkar7278 Год назад

    20:52
    ques 5
    void printNToOne(int i, int n)
    {
    if(i > n)
    return;
    printNToOne(i + 1, n);
    cout

  • @sakshi-ok8zu
    @sakshi-ok8zu Год назад

    recursion (2/21) ✅
    void print(int i, int n) {
    if(i > n) return;
    print(i+1, n);
    cout

  • @raghavsinghal22
    @raghavsinghal22 2 года назад

    Striver's backtracking understood!