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.
This comment is hidden because it contains spoiler information about the solution
Missing sample and fixed tests like
[0], 'value'
and[0], 'index'
in all languagesIn C: array length should not be fixated at 50
Only 1 random test is insufficient, also, array length should not be fixated at
50
inCS
JS
All languages do not obey to this constraint in random tests:
Some languages have sample and fixed tests like
[1, 1, 0, 0, 1, 1]
that should be removedD translation
Rust translation
Ruby 3.0 should be enabled.
KaTeX should be used.
No random tests in C#
C and C++ translations. Please review.
There're already several binary-search-related katas.
Python translation submitted for re-approval after original author (who is now inactive) accidentally rejected it.
The author is long gone, so if someone wants this kata published, will have to fix the issues.
I would replace the -1 result with a null/undefined/false, -1 index it's a Java relic limitation that should not exists in the first place. It is more confusing in JS because you can do string.slice(-1).
Nice one really, all the basic algorithms should have at least 1 kata around here.
It's a big mistake to call a class "Arrays" in java, because class with this name already exists. It's impossible to import java.util.Arrays because of this.
Loading more items...