Wrong arrangement

why this question has been added to recursion as according to constraints it is question of dp

1 Like

It was mistakenly added , we are working on it to fix it ASAP.

also after some videos questions should be given related to these particular videos so that we can learn to how to detect the particular concept in a question.
if possible a particular section should be subdivided into subsections.each subsection have combination of some videos and related questions.
eg in graph every subtopic like mst,its lectures videos and questions must be seprated from others subtopics
but present arrangement has a whole group of videos of a section and then given all questions of a section is seems inefficient in learning process.
eg all lecture videos of graph and then all questions of graph

Ok we will try our best to make this happen ASAP.

please check my code of no same permutations problem in recursion and backtracking
it is giving correct answer in devc++ but showing wa in online submission
my code https://ide.codingblocks.com/s/150406

also please clear that when is backtracking required or when only recursion required
eg printing all possible permutations , can it be solved by only recursion or i need the backtracking step also.

Recursion describes the calling of the same function that you are in.
Backtracking is an algorithm that tries to find a solution given parameters. It builds candidates for the solution and abandons those which cannot fulfill the conditions.

And your code for no same permutation is printing anything for the test case -:
5
109 113 113 123 125

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.