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.
If the "puzzle" tag refers to the description, you definitely got it right.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes, your code is even faster than mine
Btw I check the performance on jsbench.me, it's a great site
True, I probably didn't know about this method then
Square Matrix Multiplication
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]
Братан, а нахрена ты себе накручиваешь рейтинг? Так нелепо, у тебя абсолютно на всех решениях по 2 best practices, без исключений. Тебе делать нечего, что ли?)
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?
Here. The guy did in one sentence what you failed to do in 10 paragraphs, including examples
I'm still waiting for a g964's kata with a human-readable description, but I'm losing hope at this point
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
You can use jsbench.me
This will fail with something like
person.game.person
. Because if no property is found, for some reason you setresult
back tothis
, andperson.game.person
transforms tothis.person
.Coding: 0.1 minute
Boring copypasta and setting quotation marks: 15 minutes
Loading more items...