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.
Because not every character is a valid optional nose.
This comment is hidden because it contains spoiler information about the solution
using the initial value parameter for the reduce method is an elegant way of handling the empty array scenarios. Something new I've learn't today, thanks.
How does this have anything to do with math?
Like for this kind Kata!
Lite ASCII graphic kata!)
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
Nice and short!
your code fails to detect some smileys, e.g.
":-D"
From the description:
You're wrong, the test is fine.
And in the description not all valid and invalid combinations are listed, just a few as examples.
Are you sure they don't work correctly? I don't think so. Please read this before creating a kata issue and provide some proof when you create one.
kata is not working successfully in c#
random test in not working corectly.
I have all suggeted smiles in filter but somehow its not workin 🙄
Test # 2: There is no smile {;~D} in Valids -> wrong Kata
Loading more items...