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.
Not a kata issue~~
Then don't do it. The object is to develop an algorithm on your own without the use of what is commonly available. If you don't like, there are plenty of others out there that can entertain your fancy. No sense in being a baby and crying over it.
read the directions more carefully. I made the same mistake.
Is not an issue. Different races have different value :) My bad.
Yes. Don't forget that races have different 'worth' :) You have it in the description.
1 0 0 0 1 0
0 0 0 0 0 1 0
Should be a tie???
Why i keep having this error??
(~_) Thanks a lot.
The inputs are not the worth. The inputs are the numbers of each race that are in the armies. You have to multiply the numbers times the worths that are given in the description. The worths always stay the same
I am not getting you,if I'm getting worth directly as input so why should I maintain history of any race to worth? I do not need it while calculating the result!
on the good side you have 1 hobbit worth 1, and 1 eagle worth 4, for a total of 5
on the evil side you have 1 troll worth 5.
So both armies are worth 5
You are not including the races worth in your solution anywhere. the inputs to the function is the sizes of each army but you need to combine that with each races worth to get the final outcome
Good 1 0 0 0 1 0 Evil 0 0 0 0 0 1 0
So why does it expects to be equal?
The first test to fail will be the last test it will run so it is hard to say. I recomend you use console.log to print the inputs to the function to see for yourself what is being tested
What is Last TestCase?
It always fails in my case.
If you read the last line of the description: "NOTE: reverse/reverse! have been disabled for String/Array and reverse() for JS. If you are chaining join after a reverse, you will get that error
Loading more items...