|
0
Goal : Reach 1400, Current_Rating : 1054, Current_Problems_Solved : 231 |
|
0
https://www.youtube.com/watch?v=L-Wzglnm4dM : This video will solve all of your problems regarding powers. |
|
0
Since the problem already states that input would contain only distinct integers. So, in the inner loop I'm just checking if the element that is already present in the permutation should not be pushed again. In the outer loop I'm just generating a permutation starting from the idx-th position of the nums vector. On how the recursion is generation permutation directly try to draw the recursive tree yourself or try learning tree data-structure first that can help you as well, as trees are traversed through recursion which is more intuitive to understand. If you have further doubts you can also join Errichto's discord server. |
|
0
Auto comment: topic has been updated by coris (previous revision, new revision, compare). |
|
0
Auto comment: topic has been updated by coris (previous revision, new revision, compare). |
|
+4
Hello codeforces community, This is my first codeforces blog. This blog covers recursion and complete search method. I wrote this blog as I wasn't able to find a blog on recursion and I had to search many other resources and most of them just covered basic recursion. I tried to discuss as much as I have learned but the more important part to recursion is practice its implementation. The problems discussed are easy to medium. Hope this is helpful. |