• martynov-94commented on "Primes in numbers" javascript solution

Yes, your code is even faster than mine

Btw I check the performance on jsbench.me, it's a great site

• snk-jscommented on "Primes in numbers" javascript solution

hi, try my mine please, I think I achieved the best speed result

• Luisparr14commented on "Vending Machine" javascript solution

You could to use find instead forEach to get selected item

• MarkBaker8502commented on "Rotate for a Max" kata

Good observation!

• martynov-94commented on "Square Matrix Multiplication" javascript solution

Square Matrix Multiplication

• martynov-94commented on "Find the smallest" kata

Test case 209917 -> [29917, 0, 1]

"the index i of the digit d you took, i as small as possible"
The digit d is 0. We took 0 at index 1. Why do we return 0?

"the index j (as small as possible) where you insert this digit d to have the smallest number."
We insert it at index 0. Why do we return 1?

Test case 269045 -> [26945, 3, 0] is pretty much the same, but the results make sense. I don't understand why we return [29917, 0, 1] and not [29917, 1, 0]

• martynov-94commented on "Create Four Letter Birding Codes from Bird Names" javascript solution

Братан, а нахрена ты себе накручиваешь рейтинг? Так нелепо, у тебя абсолютно на всех решениях по 2 best practices, без исключений. Тебе делать нечего, что ли?)

• martynov-94commented on "Decode Morse" kata

If you don't like my comment, you can just not read it. Same logic.
And no, I don't know what is going to be the solution for the kata I haven't solved yet.

And there is a dislike button for every kata. I think it exists for a reason - to express your negative opinion about the kata.
The comment section exists pretty much for the same reason.
What's the problem with critisizing something? Some feelings can get hurt?

• akar-0commented on "Decode Morse" kata

If you don't like something, you just need to click on `next kata` at top right of the page.

• martynov-94commented on "Moduli number system" kata

Here. The guy did in one sentence what you failed to do in 10 paragraphs, including examples

• g964commented on "Moduli number system" kata

Instead of complaining you can propose something human-readable and I will see if I can take it:-) Cheers.

• martynov-94commented on "Moduli number system" kata

I'm still waiting for a g964's kata with a human-readable description, but I'm losing hope at this point

• martynov-94commented on "Trumpness detector" kata

As a wise man once said:

"What on Earth was the point of choosing this as an example? To rouse the political emotions of the readers and distract them from the main question? To make Republicans feel unwelcome in courses on Artificial Intelligence and discourage them from entering the field? (And no, I am not a Republican. Or a Democrat.)

Why would anyone pick such a distracting example to illustrate nonmonotonic reasoning? Probably because the author just couldn’t resist getting in a good, solid dig at those hated Greens. It feels so good to get in a hearty punch, y’know, it’s like trying to resist a chocolate cookie."

E.Yudkowsky, Politics is the Mind-Killer

• martynov-94commented on "Unique string characters" javascript solution

You can use jsbench.me