I am given a string and i need to find all possible letter combinations of this string. What is the best way I can achieve this? example:
abc
result:
abc
acb
bca
bac
cab
cba
i have nothing so far. i am not asking for code. i am just asking for the best way to do it? an algorithm? a pseudocode? maybe a discussion?