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.
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
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.
I understood first answer but how other brackets are getting created. Not clear.
sir to be honest you need to focus on how deliver DRY RUN ...rest is perfect.
Thanks for the feedback. Do like and subscribe and share with your friends!!!