What will be the output of the code that generates permutations and also has the ability to handle duplicates, for the input str[]=”AA”?
(a) AA
(b) AA,AA
(c) A,A
(d) A
This question was addressed to me in an international level competition.
I'm obligated to ask this question of Number Theory topic in portion Number Theory of Data Structures & Algorithms II