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.
fixed + upgraded to JUnit 5
great kata, thanks! learned something new :)
OP solved it, closing
Ugliest code i ever written... xD
Ok, I see, easy fix and I passed. Thanks.
i'm sorry, this is my fault; the assertion message was incorrect when
n > 254
, and the memory was not reset at every test, which caused confusing assertionsI fixed that and republished. Your code is still wrong though, for the reason I said.
That doesn't seem to be the issue, as the error appears for n = 254:
for n = 254, at index 232, expected: "#e9e9e9" but got: ""
the index where it doesn't find any entry seems to change everytime I run it, attempting again, I get
for n = 254, at index 193, expected: "#c2c2c2" but got: ""
.you have to generate shades even when n is larger than 254, it's just that you stop at 254
This comment is hidden because it contains spoiler information about the solution
Thanks :)
C translation (author gone)
My code no workey, fixey the code plz and thank <3
Sadly, that's not the case. I would need 10.000 honors to do that :(
Approved, now you can add tests to JS, since you're a contributor XDD
forked Python translation with random tests
Loading more items...