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.
nobits? documentation
Just reading your code and saw nobits? which I have not seen before. Looking at your code I honestly can't make out what's going on. Looking at the ruby docs is not a lot more helpful either. Googling in general is coming up with not much. Woudl you care to explain how nobits works?
Thanks in advance :)
Thank you it's OK now ! Help me so much !
Read the description again, 1 eagle hasn't the same worth as 1 troll. Your code only computes units where all have the same value.
I don't understand ? :/
The tests are ok.
Because each unit has its own worth, and your code is not using that data at all.
This comment is hidden because it contains spoiler information about the solution
Several tests are broken. I console.logged the crap out of my answer and it very clearly goes to the correct solution, unless it's failing for completely unrelated reasons such as a timeout, although the tests are not saying that. Failing on several tied results O_o