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.
If you're talking about the Sample tests, maybe you edited it? Click Reset of change it manually.
In my case, test 5 still had the number 2 as the expected answer.
Thank you very much.
Are you sure about that? I've tried your current Java code and it worked.
This is the fixed test with that input:
And you can see the expected answer is 4 there.
In this case, there should be four happy faces: [:), :), x-], :ox, ;-(, ;-), ;~(, :~D]
:), :), ;-), :~D
However, according to the test case, there are only two.
Even if we remove the repeated one, there are still three faces that meet the condition.