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.
I tried making a language-agnostic description. It would only need to add a comment in solution setup to precise the type of
greek_alphabet
. It shouldn't be too difficult as there is currently one approved language.Description
Write a comparator for a list of phonetic words for the letters of the greek alphabet.A comparator is:
(source: https://docs.python.org/2/library/functions.html#sorted)
The greek alphabet is preloaded for you as
greek_alphabet
. Its type (e.g., tuple, list, table, etc.) depends on your language and is specified in a comment within the solution setup:Examples
code to copy/paste
Write a comparator for a list of phonetic words for the letters of the [greek alphabet](https://en.wikipedia.org/wiki/Greek_alphabet).A comparator is:
> *a custom comparison function of two arguments (iterable elements) which should return a negative, zero or positive number depending on whether the first argument is considered smaller than, equal to, or larger than the second argument*
*(source: https://docs.python.org/2/library/functions.html#sorted)*
The greek alphabet is preloaded for you as `greek_alphabet`. Its type (e.g., tuple, list, table, etc.) depends on your language and is specified in a comment within the solution setup:
```
greek_alphabet = [
"alpha", "beta", "gamma", "delta", "epsilon", "zeta",
"eta", "theta", "iota", "kappa", "lambda", "mu",
"nu", "xi", "omicron", "pi", "rho", "sigma",
"tau", "upsilon", "phi", "chi", "psi", "omega"
]
```
## Examples
```
Inputs: "alpha", "beta"
Ouput: a negative number
Inputs: "psi", "psi"
Ouput: 0
Inputs: "upsilon", "rho"
Output: a positive number
```
I focused in the first time. DO YOU?
Let me give hint, right hhhh
You need to compare indices of the elements. Got that?
Have a fun.
Lua translation !
this is missing context which is in the original source text but is not applicable here. it should be removed.
Hello ejini战神,
Was not expecting a reply on this one it is three years ago now.
From what I can tell Hobvosky gave me some help with this one and I managed to solve it a few months later... you can see I thank him on my solution.
Nonetheless, thank you for your help as you have helped me on several occassions and your right in what you say.
C# Translation translation added :)
Not a kata issue, you should return numbers instead of strings
Not a kata issue. You should return numbers instead of strings
Now there are
it
block messages that display given input (updated in latest fork)done in latest fork
python new test framework is required. updated in this fork
I think that's an error from the testing. Thank you for the aclaration.
The description isn't clear and I think that the testing is not very well. That's my opinion.
The description does not give a clear idea of the task at hand. I strongly recommend expanding the explanatory part . . .
Friend, if you came here because you can't solve the problem and are now looking for at least some clue. So know this: YOUR difficulties began because the author did not give a normal explanation
Thank you.
I was really distracted with the error I got.
Loading more items...