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
I think this one should rather be 6 kyu
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
You're joking, right?
When calculating average values you need to make sure at least one of the divisors ist double/float because Integer/Long divisions result in integer/long values.
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.
just google java 8 streams
using toString() method for System.out.println() is bad practice because toString method is automatically invoced by println
this kata ist way too overrated... should be kata 8 or kata 7 at most
you are lucky this works in this case because you calculated the average wrong. (Integer / Long division)
shut up giabanga you level 6 peasant
had a really rough time with that one, should be rated 7ku at least
Loading more items...