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.
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Description should mention how to deal with multiple words separated by spaces.
Trivial comparison/sum of list values is not a novel idea.
"Predefined tests in a random order" is not good enough. Actual random tests need to be created.
First part doesn't hold for ruby where case does matter, second also doesn't because ties are broken by position in original array.
(Python) I can't understand the logic when sorting "multiple words" words. First problem is that description says nothing about what is actually considerated a word here... I guess words are things separated by commas... So why :
"Ernst von Eisenach, Oskar von Reuenthal, Anton Ferner, Ernst von Eisenach, Hildegard von Mariendorf, Karl Gustav Kempf, Adalbert von Fahrenheit, Karl Robert Steinmetz, August Samuel Wahlen, Theodor von Lucke, Siegfried Kircheis, Ulrich Kesler, Helmut Rennenkampf, Emil von Secla, Arthur von Streit, Paul von Oberstein, Reinhard von Lohengramm, Wolfgang Mittermeyer"
should be sorted as
"'Ernst von Eisenach, Oskar von Reuenthal, Ernst von Eisenach, Hildegard von Mariendorf, Siegfried Kircheis, Wolfgang Mittermeyer, Paul von Oberstein, Emil von Secla, Karl Gustav Kempf, August Samuel Wahlen, Anton Ferner, Helmut Rennenkampf, Arthur von Streit, Theodor von Lucke, Karl Robert Steinmetz, Ulrich Kesler, Adalbert von Fahrenheit, Reinhard von Lohengramm"
with n = 10?
10th letter of first three "sorted" "words" are 'i', 'e' and 'i' respectively. How could that be sorted? Unless it's actually meant not 10th letter but 10th character (in that case please call things by their names). If it is so in those three words the 10th character is a space (how should we sort between letters and spaces?), the description says " If both letters are the same, order them normally (lexicographically)". How would "Ernst..., Oskar..., Ernst..." be sorted alphabetically?
Lack of sample tests in Python
Sample tests covering the
"if teams are equal compare their anchors"
rule should be added to all languages.No random tests in Python, Ruby, Java and C#.