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.
This comment is hidden because it contains spoiler information about the solution
Yet another kata that makes my code return different results hence not passing. My code works directly in node and VS CODE, but not in the site.
I don't know if the site's node is too old or what but I'm sick of these issues.
It runs quickly and smoothly in two other node instances I used to test this, with no errors. Because of this disparity, without more information, what am I supposed to do besides chase a potentially ghost bug?
I found this a harder problem than I thought, but after plenty of struggle I came with a solution that solved all test cases. But the output showed an error in the end (http://image.prntscr.com/image/d374d4af9fbb4557b4afac24991667da.png). Doesn't even tell me what line of code and with that non-verbose error and a working algorithm, working also in my PhpStorm I don't know what it's complaining about.
I had to unlock the kata even though my algorithm works. Very frustrating.
I pass all the tests, but when I submit:
✘ Loop size of 1 expected: 2 should equal 1
Why? And how is possible a loop of only one node?
This is way too cryptic. Maybe clever but not best practices at all.
Best practices? With those variable names, not really.
It seems there's an error. My code passes all tests yet in the end it says:
Random tests
ReferenceError: randint is not defined
at Object.Test.describe
FYI, I haven't used randint in my code.
Cap: http://i.imgur.com/SjQ8CCz.png
That's the only test the code runs to fail in codewars, but works perfectly in other systems. I can't pass it because something in codewars is not working correctly...
What similar lists?
What's wrong with codewars?? I'm getting bug after bug, it doesn't accept correct code. For example in this exercise:
x = 3 - Expected: [1,2,3,1,1,2,2,3,3,4,5], instead got: [1,2,3,1,1,2,2,3,3,2,4,5,1]
Yet, if I run it in Cloud9 for example:
Neithan:~/workspace $ node main.js
[ 1, 2, 3, 1, 1, 2, 2, 3, 3, 4, 5 ]
What the hell?
It only says:
...
Expected: 2, instead got: 1
...
Expected: -20, instead got: 1
...
All else working fine. How can I troubleshoot these two without knowing what's testing for?
Nobody said it's a happy relationship. Nobody said this was the moral thing to do. It's just an exercise, get over yourself.
Hi,
As you can see in my post (I actually checked all posts before posting mine), I wrote very clearly: "I understand rounding margins add up, but I've verified with Webstorm and indeed my code returns 2.26".
So it was never about recursion or not recursion, but rather the difference between Codewar's result and Webstorm's.
Do you understand what I mean?
Thanks.
This comment is hidden because it contains spoiler information about the solution