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.
still took me some time to understand the correct order of events :)
This comment is hidden because it contains spoiler information about the solution
I was also mislead by the description of the last example, where it says "the possible result contains negative number". It would be less confusing if it said "the possible result contains a number that is not positive".
I just fixed that specific error and now the author's solution passes again.
But I didn't dig deep enough into the anti-cheating code to be confident that I fixed everything.
You should not be throwing an
Error
, you should be returningundefined
.ok
fixed
you can work thu this like so
!!
is shorter than a 5-character chunk, so it must be padded withu
chars!!uuu
[33, 33, 117, 117, 117]
[0, 0, 84, 84, 84]
(0 * 85**4) + (0 * 85**3) + (84 * 85**2) + (84 * 85**1) + (84 * 85**0)
=614124
[0, 9, 94, 236]
u
were added to the padding, drop 3 bytes from your result:[0, 9, 94, 236]
becomes[0]
[0]
as ascii string:'\0'
or'\x00'
or'\u0000'
– each are equivalentanswer:
<~!!~>
decodes to a string with a single null byte:'\0'
Yep. Thank you. Fixed now.
I modify the description add some text like above ;-)
This comment is hidden because it contains spoiler information about the solution
the
lucky man
in first round is always the first man(element 0).The process of game is:
This comment is hidden because it contains spoiler information about the solution
Anyway, thanks for your test, solve and feedback ;-)
Sorry, but where is saying 0 is valid value? In the beginning of description, I wrote "positive number"
Loading more items...