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.
First i was thinking, the average was not good, then i understand.
Thanks , nice code
That's me T_T
7 months later, you still didn't solve it ^^
... Anyway, I really enjoyed too this kata, but conversely, I would rate it 1 Dan though ;P
I would have thought the
long
would coerce theint
. . .Is the data type wrong?
I might agree if there wasn't a time limit. Still trying to get my solution more efficient, and it's timing out at ~2500ms. When I time my solution locally, I have to use an array of 100 million numbers before I get to that kind of run time. So I know my solution works, just that whatever test case they're throwing at me is bigger than 100 million. And for a beginning programmer such as myself, knowing all the optimization tricks is not a reasonable expectation. So I think this is good at 6kyu.
except you didn't solve it, for now...