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.
Great!
Terrible
Done for Python.
Floating point errors:
This is because substr prints the number of characters after the
starting index
. Had you started from0
, you would just need to subtract1
to exclude thelast element
.But since you have started from
1
, it has shifted the range by1
, which means the last character is included again. So you need to subtract2
.According to documentation, the last index is the index of the first character to exclude, rather than the last one to include
Have you gotten an answer yet?
This make sense. You are getting the strings you want directly.
Description should be language-agnostic
Also, The global array in ruby should be
$league_table
Inconsistency among languages:
Reraised as issue
Reraised as issue
No random tests in JS
Node 14. should be enabled
it seems some of the inputs are not sorted according to the definition
I got this input in one of th random tests
['CodeWarriors', 0], ['Founders&Coders', 0], ['Quorans', 0], ['CodeCademists', 0], ['Eden of the East', 0], ['Max Headroom', 0], ['FSociety', 0], ['Public Security Section 9', 0]]
which clearly ['Quorans',0] should have been the last element in the league_table
it is possible to sort the whole table everytime. But that does not seems to be a wise approach.
This comment is hidden because it contains spoiler information about the solution
Loading more items...