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.
Ikr !!
It doesn't care at all.
This comment is hidden because it contains spoiler information about the solution
Apologies for the late reply.
You declared a variable without initializing it and used its "value" afterwards. That's undefined behavior (an uninitialized variable is not guaranteed to have initial value
0
).Apologies for the late reply, I just tried your solution as-is and it passed all the tests under
11000 ms
on the first attempt. Perhaps try resubmitting a few times?Hi @imago.dei,
Please post your solution below using Markdown code blocks so I may review it and perhaps provide a few hints (I assume you're attempting this Kata in JavaScript?).
Cheers :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That's weird, I've tried my js solution in typescript and it passed with no problem. Why don't you post your code using proper markdown and marking your post as having spoiler content?
If your code is failing only some random tests I would tell you check the note:
Tests pass without issue, but submitting fails all random tests in Typescript. I've written an astronomical amount of my own tests, which are all passing. When submitting my answer, it tells me
expected 0 to equal x
, wherex
is the expected result. Mathematically, this doesn't make sense, especially when my tests themselves are passingI'm getting the same errors
Why not write the description in a language-agnostic way?
This comment is hidden because it contains spoiler information about the solution
Been doing JS a long time. This is the best practice for this problem
Am I missing something? All three columns are 128 bytes long by default.
Loading more items...