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.
Not a syntax error, just lazy test making.
The test suite does not guard against
equal_to_24
returning"It's not possible!"
before callingeval
(when an equation is expected). Thus, the tests try to runeval("It's not possible!")
, and since"It's not possible!"
is not valid Python syntax, aSyntaxError
is raised.Think there is a syntax error in the test cases.
This was after straight returning "It's not possible!"
Suggestion implemented & made description language agnostic.
Note the list isn't really sequential (the actual sequence for n-digit = 3 in ascending order goes like
100, 110, 111, 112, 113, 114, 115, 116, ...
)I think the description should include the number "100" in the
number_of_duplicate_digits(3)
example.This comment is hidden because it contains spoiler information about the solution
Thanks, removed.
You have a ghost JS version.
The description seems to indicate that two passes are required, but my solution passed by checking for a zero after only one pass. That's a little confusing and should be clarified.
Strictly a mathematical challenge more or less, nice kata for the record.
well said, updated, thanks
python new version to be updated.
They are not,
BigInt
is a wrapper aroundjava.math.BigInteger
iirc.EDIT: apparently,
java.math.BigInteger
andBigInt
are not the same.JavaScript translation
Oh, retired.
Anyway, then...
Loading more items...