Question DSA-REC-0057
MediumHow can duplicate permutations be avoided when backtracking over 'AAB'?
- A.
Use a stack
- B.
Sort the characters and skip a character equal to the previous one that was not used
- C.
Sign up free to see the answer and a step-by-step explanation.