Algoritm case 1

Tue 15 Sep 2015, 19:42

Im curious with this Algoritm case: You have 2 words separated by comma. You need to find how many combinations of words from the first word. The combination must be unique and contain the second word.   Input 1: aabc,ba Output: combination: 6 (abac, acba, baac, baca, caba, cbaa)   Input 2:  ferdiferdi,ferdi Output:  combination: 719   And this is my code and i

read more