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.
You should add the following packages
https://facebook.github.io/immutable-js/ Immutable data structures and lazy seqs
https://github.com/elclanrs/essential.js Functional programming in Javascript
Coffeescript translation kumited.
Yes, it's that. Redid the sorting part so it does not rely on Array::sort being stable https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
@NateBrady
Its on coffeescript. My solution sometimes works, and sometimes doesnt.
I think my solution is wrong, since i used Array::sort to get the order of the bots, instead of
"A robot with the most speed attacks first. If they are tied, the first robot passed in attacks first."
Its broken.
Some of the test cases look wrong
This comment is hidden because it contains spoiler information about the solution
In coffeescript, getPlanetName(0) should return ''.
It's not clear what getPlanetName(0) should return
Needs a test.
Test case is too complete. Maybe just put 2 test there, i think it will be better