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.
...well now I feel stupid XD
Wait, what if they pass two different types? :P
Late reply, but in the words of Robert 'Uncle Bob' Martin: "Writing code that is understandable is more important than writing code that works."
Neat kata! I'm liking this thoroughly geeky series :B
One possibly minor issue: I failed a couple times when my queries came back in a slightly different order to the answer (in cases where two enties had equal wins but a different number of losses), but then I randomly passed after a few re-runs.
Well I mean I've been trying :P I've done all kinds of bitwise-shifting, but I can only seem to floor things with that, so it still errors out on occasions where I need to round up.
Math.round()
works wonders, but it's too long... andMath.imul
gets me slapped on the wrist, of course :P (Though I still seem to pass the 'anti-cheat test' with that, even though it claims cheat-code in the results..?)... well, I'll keep searchin'. Cheers for the clarification, though.
My code passes everything except for some irritatingly persistent rounding errors. Are these just part of the experience to solve? Only I'm about ready to chew my desk in half from sheer rage at this point :B
I write my draft code for these katas over at js.bin, but I'm hitting an odd snag: my code for this one works fine over there, but here I get an error here saying Object.values() isn't a function. Is this normal?