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.
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.
This comment is hidden because it contains spoiler information about the solution
Fixed.
This comment is hidden because it contains spoiler information about the solution
Loading more items...