• ###### afterwordscommented on "Odd or Even?" javascript solution

bruh forgot about these things =>

• ###### fish11joecommented on "Count the smiley faces!" kata

This was a great kata, makes you make careful and discrete steps, cuz if not then everything is just doomed. I liked it

• ###### DaBigBabycommented on "Count the smiley faces!" kata

i was writing it the wrong way!
if you're having the same problem somehow, try this:

``````':' in ';~D' and 'D' in ';~D'
>>>False
``````

silly mistake

• ###### DaBigBabycommented on "Count the smiley faces!" kata

why is this happening?

``````':' and 'D' in ';~D'
>>> True
``````

(Python-3.10)

• ###### crajpurohit88commented on "Count the smiley faces!" kata

I have checked it manually with test cases, the number of smileys are equal to the value returned by my method but the test case is giving wrong output.
Requesting you to please verify the test cases.

• ###### FArekkusuresolved an issue on "Count the smiley faces!" kata

My code works perfectly fine in IDE

If your code was correct, it'd have worked here as well. Your solution logic is flawed - not an issue.

• ###### crajpurohit88created an issue for "Count the smiley faces!" kata

This comment is hidden because it contains spoiler information about the solution

• ###### farhanadityacommented on "Find X" javascript solution

Try lookup Cubic Sequences

• ###### breznfressercommented on "Count the smiley faces!" kata

Are the rules really meant that way?

• they imply no order to the elements. (e.g. mouth->eyes->nose seems valid from the rules)
• they imply no number of occurances of single elements. (e.g. eyes->eyes->mouth->mouth seems also valid from the rules)

However, as I was browsing the top solutions to this Kata they seem to check the order of elements (eyes->nose->mouth) and are very strict on the number of occurances.
How did these solutions pass the tests?
Or are the rules more strict then what is written in the Kata?

• ###### Nikitakuncommented on "Find X" javascript solution

How did you figure that?

• ###### Chrono79commented on "Odd or Even?" javascript solution

No it doesn't assume initial value as 0, and it's optional:

initialValue Optional

A value to which previousValue is initialized the first time the callback is called. If initialValue is specified, that also causes currentValue to be initialized to the first value in the array. If initialValue is not specified, previousValue is initialized to the first value in the array, and currentValue is initialized to the second value in the array.

Source MDN

• ###### leogm360commented on "Odd or Even?" javascript solution

You're right. Reduce method requires a initial value, when not declared it assumes 0 but it can get nasty really quick.

• ###### Alekiel42commented on "Financing Plan on Planet XY140Z-n" javascript solution

It was not easy, I work with a paper a long time and finally i found the pattern bu my self

• ###### orestwojtowiczcommented on "Count the smiley faces!" kata

This comment is hidden because it contains spoiler information about the solution

• ###### hwillcommented on "Count the smiley faces!" kata

This comment is hidden because it contains spoiler information about the solution