← All problemsSign in

Back_Track

Jacob, has worked enough on numbers. Hasn't he? Last he implemented a permutation algorithm for numbers. He now wants to do it with Strings and has taken up the following question: You are given a string. Use recursion to find and print all possible permutations of the given string except the exact opposite of the given string. Repetition is allowed. ###Sample Input : ABC ###Sample Output

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start