Leetcode 22 | Generate Parentheses ( Java Solution | asked in Goldman Sachs recently)

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 6

  • @pratapjavasingh3239
    @pratapjavasingh3239 4 года назад +1

    Why i am unable to carry the concept long period of times bcz I forget the the concept short period of times need ur suggestions

    • @TheTechGranth
      @TheTechGranth  4 года назад

      That can happen when you try to mug up the solution, try to keep it simple, try to learn the basic concept, for example if you see this problem, if you understand how we apply backtracking and know the skeleton code which I wrote initially, the same skeleton can be applied to any other backtracking problem. The whole reason why I wrote the skeleton of backtracking 1st and then came up with the variables is to explain how backtracking works, you can use this and apply the same for any other backtracking problem and you will be able to achieve result.
      The other way to achieve this, is to solve a lot of problems.

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

    I understood first answer but how other brackets are getting created. Not clear.

  • @sakshigupta4793
    @sakshigupta4793 3 года назад +1

    sir to be honest you need to focus on how deliver DRY RUN ...rest is perfect.

    • @TheTechGranth
      @TheTechGranth  3 года назад

      Thanks for the feedback. Do like and subscribe and share with your friends!!!