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.
Thanks. I've updated the kata description. Is it clear now?
The third sentence in the kata states: "There's a preloaded dictionary called alpha which you can use. Keys are lower case letters and the space."
Fixed for Python.
it's the other way around; pay attention to the dates (you can see them at the bottom of the
Details
page). Kata authors cannot unpublish approved katas anyways so deduplication is handled on githubHa, good question! As far as I was able to discover, it's about assigning a total value to each giver's gifts. If a gift doesn't occur in the list of gift ranks, it receives no value. But if it does occur in the list of gift ranks, its value is a power of two, with its index in the list of gift ranks used as the exponent. Finally, order the givers from lowest total gift value to highest total gift value and return their names in that order.
The task is complicated by the fact that multiple givers can have the same name, and by the fact that the list used in the input is structured in a bizarre way, with the giver's name in the last position, preceded by any possible number of gifts.
I hope this helps anyone trying to figure it out.
Can anyone else other than the author explain what this kata is about?
I added it. Thanks for the suggestion.
Thanks for your comments. I'll address them one by one, but in general I'll point out that the intention of this kata was to reflect the reality of this seasonal task. If you keep that in mind, some of these responses will make more sense:
There Is no possibility for a name to be the same as element of the gift.
This could alternatively be fixed by changing the spec to accept any longest zero-sum substring ( a subsequence is something else ). That would not invalidate any solutions.
This would need to be done for all languages. I can do it for JS but not CS.
Fix: https://www.codewars.com/kumite/6522e9d5e650909141f1bc66?sel=6522e9d5e650909141f1bc66
You are welcome!