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.
doesn't match case-insensitive spec
Issue with problem statement
There are inconsistencies between the problem description and the test cases.
The problem statement says, "The letters should be compared case-insensitive," but the tests only pass if the sorting is case-sensitive.
The the following sentence in the problem statement is redundant: "If both letters are the same, order them normally (lexicographically), again, case-insensitive". Lexicographical ordering already handles ties without needing a separate case-insensitivity clause.
Please clarify whether the sorting should be case-sensitive or case-insensitive.
Not worth spending time cause the description is awful.
OP solved it, closing
Approved
python new test framework is required. updated in this fork
awesome dude
Thanks ilya for the input and I was able to solve the Kata by following your instructions. I unnecessary spent time on the Kata because of its incorrect description.
Whoever wants to solve this kata just follow this part of the description "Write a function that accepts two parameters, i) a string (containing a list of words) and ii) an integer (n). The function should alphabetize the list based on the nth letter of each word." and ignore anything further.
Compare words (groups of words) separated by a comma. Also, when comparing, you must take the case of letters into account, even though the description says otherwise. The lexicographic sorting is also unnecessary if the letters match.
There is an error in the description. It says that letters should be compared case insensitive, but the tests can only succeed if they are case-sensitive. The lexicographic sorting is also unnecessary if the letters match.
Could some one help on "how to deal with multiple words separated by spaces". Should space be considered or not.Any further explanation to under this Kata is very much appreciated. I see many people solved the Kata in many different languages, so I must be missing something. I sorted by character at the index and then the word lexicographically, but test are failing. I followed the step to make the comparision case insensitive as well.
Misleading. Its not just words, it's words separated by spaces, then the comma. And some of the words are less than n in length.
This comment is hidden because it contains spoiler information about the solution
beep-boop I thoroughly enjoy this approach!
Please use spoiler flag next time.
Loading more items...