Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
check out my solution
Done. Thanks.
Count the letters, the cases where your function should return true have 3 of one kind and 2 of other.
The one where your function should return false has 3 different letters there.
I do not understand the terms of the problem.
Why this condition ['b', 'b', 'a', 'b', 'a'] is true
This condition ['a', 'a', 'b', 'c', 'b'] is is false
And this condition ['c', 'a', 'c', 'a', 'c'] is true