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.
assert.strictEqual
instead ofassert.equal
max
<base
? I think this case should be valid..
Approved
Update Fork
tester(26, 40, 33)
test (since it goes against the input constraint)JS translation goes against the constraint of
N
in the descriptionIt was not mentioned what kind of direction is "recognizable" and what is not in the description.
Description contradicts the order of input in the actual code and tests
For invalid direction in random tests, modifying the input array and then returning it will pass the assertion. This shouldn't happen.
random_valid_key
andrandom_invalid_key
are missing from the testsThis edge case goes against the constraint of
k
in the descriptionDone. Lmk if I missed any.
Ok, now I get what's wrong with my scoring code. Thanks :)
Why should this result in
'Nay!'
? Isn't Lancelot's score is+1
since they're on the same Faction?Well, you can use one of the solutions that are already submitted as reference solution if you have some problem making a new one. I myself don't mind if you wanna use my solution.
I think there should be code length limitation for the problem (to prevent hard-coding).
I'm fairly sure that the refsol misses some cases.
For
n=12, k=25
, it expects to return""
. But there is 25th sliceprime for that base, which is35B7
3
is prime3*12 + 5 = 41
is prime3*144 + 5*12 + B = 503
is prime3*1728 + 5*144 + B*12 + 7 = 6043
is prime5
is prime5*12 + B = 71
is prime5*144 + B*12 + 7 = 859
is primeB = 11
is primeB*12 + 7 = 139
is prime7
is primeLoading more items...