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.
Groovy Translation
Lua translation !
All languages should have fixed tests below to invalidate some cheezy solutions that check for summation == 0
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, -2, -1]
Python translation
All languages other than JS, TS and Python:
Relevant fixed tests are contained within the linked issues, Python and JS have sample random test code which should provide sufficient coverage.
Empty array seems to fit the given defintion of "nice" (i.e., "an array where for every value n in the array, there is also an element n - 1 or n + 1 in the array.") For every value of an empty array (i.e., none) there is also an element n - 1 or n + 1 (i.e., none). Should either change the definition and instructions to specify that the array is non-empty or change the test so an empty array returns true.
Python: Random tests are vulnerable to input modification
To be consistent with the description, the C function should be called
compute_depth
rather thaninteger_depth
.python new test framework is required. updated in this fork
python new test framework + random tests are required. updated in this fork
python new test framework is required. updated in this fork
There are tests with
1
in Rust.Python reference solution is wrong. For example:
Edge cases (e.g. 4453, 14399, 34595, 44969, 408593, 218683, 663193) should be in fixed tests in all languages.
Hello! Why do I have such a result?
Expected: [764, 987, 567, 155, 329], instead got: [329, 312, 181, 266, 606]
what are the parameters here: a.letgth = ? i = ? n = ?
someone, expain me, please:
in case arr.length = 110, i = 61, n = 36
Expected: -1, instead got: [858, 731, 252, 534, 836, 716, 861, 783, 186, 984, 90, 839, 168, 26, 942,
415, 847, 65, 35, 422, 143, 159, 235, 198, 355, 298, 44, 255, 995, 730, 843, 403, 306, 171, 636, 996]
why does testcase expect -1 ?
Loading more items...