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.
please, do not raise issues to ask for help, use questions instead
print your input. your code has false positives, for example it returns
1
for[";~P", "; D"]
. neither of these is a valid smiley according to the rule:P
is not a valid mouth, and there can be no whitespace between the eyes and the mouthI think there is somethin wrong in the random tests. For each of these three tests I have the same amount of smileys but the error is: "Test failed. Expected: 2 But was: 3".
Has somemone the same problem?
total = 2:
"-P" "8)" ":-)" "8~P" ";)" "P" "-)" "8 ("
total = 0:
";~P" "8("
total = 2:
"8
D" ": D" "8 D" ";D" ":)" "8-P"This comment is hidden because it contains spoiler information about the solution