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 finding! (un)fortunately it's not tested... After checking, it also fails for
4832
:-(Here is a fixed fork
OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
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.
Original test was on this data:
"Sadus:cpms>orqn3zecwGvnznSgacs","MynwdKizfd$lvse+gnbaGydxyXzayp"
You should not count upper case letters.
The input values are
"Lords of the Fallen"
and"gamekult"
.Read the answer to it.
The tests are fine: https://www.codewars.com/kata/561e9c843a2ef5a40c0000a4/discuss#6352f34b5abf4f44f9b5ca99
Did you read this:
it is literally a solution that was meant to be
Print the input, you're adding leading zeros there in both cases.