Write a program to accept any 3 letter word and print all the probable 3 letter combinations. No letter should repeat in the output.
INPUT: ABC OUTPUT: ABC ACB BAC BCA CAB CBA
Answers
Answered by
0
Answer:
Here is a solution that is used as a basics of backtracking. see the attachment.
Attachments:
Similar questions