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.
Your code is wrong. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Lua translation!
I overlooked that in the description, thanks.
There is a fixed test for 21st century, and some other fixed tests were commented out.
In JS the test cases for 1st, 2nd, and 3rd century seem to be missing because I was able to attempt and pass all the tests while my log was printing "1th" for "1" as the input.
Ahhhh, I was thinking in terms of JS only but forgot to consider this kata is for a lot of other languages too. This makes more sense now. Thanks for being a mod.
In the case I mentioned above, you could think sorting alphabetically without distinction between capital and lowercase letters. Check this other post: https://www.codewars.com/kata/57cfdf34902f6ba3d300001e/discuss#64a5b40cdddc251219dfa1de
This comment is hidden because it contains spoiler information about the solution
It includes the information about ASCII chars, because you could otherwise think that
B
goes aftera
and that's not the case here.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I also found the same thing. I think that there is an error in the question?
Did anybody else notice how really weird and bone chillingly creepy the test case's string combos are?
["a","Dog","Of","Food"]
["Beg","Life","I","Too"]
["","Moderately","Brains","Pizza]
Like what in the world, straight out of Stephen King novel
The description was confusing for me because it mentions ASCII values specifically but solving the problem has nothing to do with ASCII values. "You must sort it alphabetically (case-sensitive, and based on the ASCII values of the chars) and then return the first value." --- A value is a number and it says to return a value.