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.
Or, maybe I wrote it this way for fun, not ever intending it to be production code...
( JS )
Description promises random tests up to
1e14
, but only delivers up to94906265
. That meansBigInt
seems called for, but actually isn't. It even meansMath.floor
seems called for, but binary ops will work after all.Please specify the correct range for random tests. Because it matters for implementation purposes.
Fixed it!
C lang, Random test #151:
max_int_chain(11824018337): expected -1941635738991041840, got 0
I understand this code, but it's not easy readable, so it would take time for your colleagues to maintain it later.
sorry to bother you, have no idea how to delete this
The tests seem fine, so this is coming from your code. How are you allocating space for the result?
I'm closing this, because it's not a kata issue, but feel free to reply (maybe with some code).
Sample_Tests
should_pass_all_the_tests_provided
Test Passed
Test Crashed
Caught unexpected signal: 6
Completed in 0.0000ms
STDERR
free(): invalid pointer
Raised as an issue.
C: initial code should include the header
stdbool.h
and return type should bebool
.For C - lang You should return 1 or 0, not True or False to pass all the tests.
Sorry, but for C it's not fixed, I got error returning True or False, but when i've changed to 1 and 0, I passed all the tests.
Not a kata problem but of your code. Ask yourself how you can fill the buffer.
This comment is hidden because it contains spoiler information about the solution