Subsets | leetcode 78 | Hindi

Sdílet
Vložit
  • čas přidán 10. 07. 2020
  • liked this video? Click here / @codebix1096 join our facebook group :- / 258049468776636
    problem :- leetcode.com/problems/subsets/
    code :- github.com/luckykumardev/leet...

Komentáře • 48

  • @ritwik99
    @ritwik99 Před rokem +6

    I don't comment on videos but this one was really well explained. Thanks!

  • @sumitrathore777
    @sumitrathore777 Před rokem

    I search all over the web for this recursive java solution and you are the only one who explains it.

  • @aryanbarnwal65
    @aryanbarnwal65 Před rokem +1

    Why you have written ans.add(new Arraylist(curr));
    Why not ans.add(curr);

  • @davinder95
    @davinder95 Před rokem +1

    bht bdiaa bhai bht bht bdiaa great explaination keep going

  • @RishiRaj-vh2ul
    @RishiRaj-vh2ul Před 2 lety

    superb explanation, after watching a ton of videos on this topic, I finally understood it

  • @kashishkashyap6229
    @kashishkashyap6229 Před rokem

    Thanks

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

    Was searching for this kind of video: explanation as well as code❤️

  • @lakshay199
    @lakshay199 Před 4 lety

    can u suggest in which video u taught this dfs approach i want to learn how its dfs or any other reference

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

      you can see my DP playlist form there you can get the idea

  • @oceanbhardwaj5471
    @oceanbhardwaj5471 Před 4 lety

    Great ..explanation
    It would be great help if u make such videos on recursion series

  • @OP-yw3ws
    @OP-yw3ws Před rokem

    Thanks!

  • @pratikshadhole6694
    @pratikshadhole6694 Před rokem

    best

  • @RaviShankar-nz1tq
    @RaviShankar-nz1tq Před 4 lety

    excellent explanation, did not find better than this anywhere.

  • @Satishkumar-rx7oy
    @Satishkumar-rx7oy Před 2 lety

    thanks sir great explanation as always

  • @mohdsameer2445
    @mohdsameer2445 Před rokem

    nice video sir

  • @kumarmanish8515
    @kumarmanish8515 Před 4 lety

    Thank you so much, sir. I am waiting for this video. and nice explanation , sir

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

    that last beat is so load , thanks for your videos..

  • @sonalisaxena22
    @sonalisaxena22 Před rokem

    Very well explained 👍👍👍👍👍

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

    I usually don't comment on videos but I am commenting here (Subscribed also) because the explanation was driven very well and smoothly. just one suggestion for you after each video try to give some idea on space and time complexity.

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

      Awesome, thank you!
      Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true

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

    What will be the time complexity

  • @doomhead9109
    @doomhead9109 Před 2 lety

    Thank you soo much sir I love you

  • @harshalgarg1149
    @harshalgarg1149 Před 4 lety

    So good.

  • @shubhamkhandelwal1974
    @shubhamkhandelwal1974 Před 3 lety

    Shandarr. please make more videos

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

    👍

  • @shubhambhatt7171
    @shubhambhatt7171 Před 4 lety

    Great work bro !! Keep it up :)

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

    What's the time and space complexity ? Thank you for the video.

  • @csalgo7345
    @csalgo7345 Před 4 lety

    Amazing!

  • @himanshuchhikara4918
    @himanshuchhikara4918 Před 4 lety

    sir hmne duplicates kese handle kiye yha pr

  • @noobevsprorelation6838

    nice explanation sir

  • @PritamKumar-mr5dv
    @PritamKumar-mr5dv Před 3 lety

    cool

    • @codebix1096
      @codebix1096  Před 3 lety

      Thank you.
      Follow our linkedin page for regular updates www.linkedin.com/company/codebix/?viewAsMember=true

    • @PritamKumar-mr5dv
      @PritamKumar-mr5dv Před 3 lety

      Ur video are great

  • @abhinavverma4111
    @abhinavverma4111 Před 4 lety

    [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]] ye exact order laane ke liye kya change karna padta. Not list reverse, in recursion steps. Currently the order is reverse.

    • @codebix1096
      @codebix1096  Před 4 lety

      Apply bfs :)

    • @codebix1096
      @codebix1096  Před 4 lety

      I mean solve this question iteratively you will get this order

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

    This is more of an implementation doubt rather than a logical doubt.
    Doubt -
    In getSubsets function inside the base condition if I am doing -
    res.add(curr)
    instead of res.add(new ArrayList(curr))
    then output is all empty subsets.
    new ArrayList(curr) should append a new list with all the element of curr list. Why is it different from appending curr list itself?

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

      if we add the current list, and remove the element from current list for backtracking , it will remove the element from the previous added list as well,
      the same reference of the list will be used and only same data will be appended to the final list again and again.

    • @neerajyadav2349
      @neerajyadav2349 Před rokem

      @@pawansinghvohra160 thanks a lot