If I have a string (e.g. 'AABC'), how can I calculate the number of possible unique strings?
The answer is 12 in this case, but how can I caclulate this with an algorithm?
I could do it for 'ABC', but having the repeated character confuses me.
I'm trying to do it in Python
Edit: Also, I am not looking to generate all the possible strings, only to calculate the number.