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.
This is becuase n squared is equal to 144. The sum of 1, 2, 3, 7, 9 all squared gives that solution but 1, 2, 4, 11 does not. It equals 142.
:-)
OK. Please be aware that the Random test output my expected values.
For example, the test 5 is saying dogYears=
14
means owned for humanYears=0
([1,0]
the 2nd element - e.g. array index 1 is0
), but your solution returned1
And that is the correct result (14dy -> 0hy) because Kata description says
Results are truncated ...
So your solution is incorrect.
Please cut/paste the console log of your failing random test instead of re-typing it. I don't quite trust what I am looking at...
e.g.
It seems he only coded in Java so far.
Which language?