I am currently learning java and wondering about some question. I am given problem that there is an n string that consist of three letter A B and C. The problem is that it can be made into a n lenght string and i need to find the numbers of combination that have three A on the n lenght string.
Any tips on how to tackle this problem? example on a 4 letter string:
ABBA AAAB ACCC BAAA and so on
thank you