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.
please do not open
issues
when you are asking for help.The answer was three. Finally just reworked my code to test random things and it passes now. Nowhere was it explained that a three or more way tie for gold means NO OTHER medals are awarded whatsoever. Would be good to add that!
HOW MANY PEOPLE CAN TIE FOR GOLD BEFORE NO BRONZE MEDAL IS AWARDED?
ANYONE??
@Blind4Basics Can you please explain the conditions under which there can be multiple medal winners and when a medal is NOT awarded in that case? I'm stuck unable to pass the random tests because it seems to confusingly fail, saying that there should not be Bronze winners because there are multiple Gold winners,despite this being perfectly acceptible in Example 3. Whatever the rule is here, it is not explained, and I'm stuck on this kata until it is made clear.
Thank you!
Typos:
done
should be fixed with alphabetic ascii characters names used
Good kata
@ostaladaFab: just remove all special chars. It's the simplest way out of this.
almost good about the general structure: you need to choose randomly between the different kinds of generators. For now, the kind of output isn't random. ;)
Maybe it was wrong of me to assume that it should be sorted lexicographically (?) and not by ordinal values. Just by the way it sounds it looks wrong, if we operate in english. I have no knowledge in that field, so I wouldn't claim to know anything. Here's some interesting examples that I based my assumption on:
Whatever the case, the expected sorting order is not defined in description, so that's an issue.
Because it produces results which can be considered wrong (or, at least, unexpected), and if locale-unaware sorting is required, it shoud be specified in the description.
Why not sort without using localeCompare?(
Q =(a,b)=>a>b?1:b>a?-1:0
)Like B1ts said, sorting language sensitive information (and peoples names can be considered such) by ordinal is... not good. In Polish, correct sorted order is
["bak", "bąk", "byk"]
, and if you sort it by ordinal, you get wrong result.How?
BTW:
Loading more items...