Sick!!

• ###### Blanka4321commented on "Hexagon Beam Max Sum" kata

I am feeling a little simple as I haven't figured out how the series is generated from line to line

• ###### Blanka4321commented on "Find unique number" javascript solution

Your solution is so terse my version is so verbose

• ###### Blanka4321commented on "Find the smallest" kata

I will try. Looking at the number we can see the smallest digit is 1 which appears in the number in several places, at positions 6,7 and 10 using 0 based indexing.
We choose the the last occurence of the minimumal digit to find the smallest number, so we can tranformer the number say to an array or string to using the built in
method lastIndexOf()

• ###### Blanka4321commented on "Mean Square Error" javascript solution

How is this a 5kyu?

• ###### Blanka4321commented on "Create a House Cleaning Rota" kata

I am not sure why thr first test and the first test only is not passing when using Javascript

• ###### Blanka4321commented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

OK it's not going to take much to sort this out, all I would have to do to pass your test case is to replace the 0 in the array to 1 and ignore the map function as javascript will does the necessary conversion in the reduce part. I am not sure how long ago I wrote this solution but I am sure I was new to the language, but thank you for highlighting the shortcomings with this solution thank you. Now if you can check the outs I have done that would be appreciated

• ###### Bender_nnmcommented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

Yes, it is working. Because cata has bad tests :)
Okay, n is always positive, so it would never be 0.

But you can try something else, for example - 40585.

// 4! = 24
// 0! = 1
// 5! = 120
// 8! = 40320
// 5! = 120

Correct => 24 + 1 + 120 + 40320 + 120 = 40585
In your case => 24 + 0 + 120 + 40320 + 120 = 40584 (wrong...)

• ###### RobsonMooncommented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

This solution is fine for the kata requirements, because the `n` is always positive, so it would never be 0.

• ###### Blanka4321commented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

Oh OK the solution works so I am not bothered really. I can't remember how long ago I wrote this tbh. It still managed to get 6 best practice recommendations and 5 clever so I am cool with it

• ###### steffan153commented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

Yes, it is a comment on your solution.

• ###### Blanka4321commented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

I am confused is this comment regarding my solution

• ###### Bender_nnmcommented on "STRONGN Strong Number (Special Numbers Series #2) " javascript solution

Wrong, try strong(0). It will return 'STRONG!!!!', but 0! = 1, so 0 != 1...
Also, the map is not necessary

brutal!

• ###### Blanka4321commented on "Simple Fun #312: Maximum Product" javascript solution

If you have the time could you possible explain your algorithm for this problem please