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.
a < b
is the same asb > a
.Also, map is faster than inject, so I agree that it's not the best solution.
I love this.
You have mutated the input array.
why it should be 0 ?
This comment is hidden because it contains spoiler information about the solution
If performance isnt an issue this is a very clean solution, however the usage of potentially 175 counts could become cumbersome for large sets. Still this does run in O(n) which is optimal
stop, but what about - "Your points are not included in the array of your classes points. For calculating the average point you may add your point to the given array!"?
This comment is hidden because it contains spoiler information about the solution
Nice! Awesome--it's fixed!
Thanks again for the cool Kata!
Works perfectly now! Thanks for the correction! Awesome Kata!
thanks!
Hi, apologies- I have been having some problems with the ruby translation- I'm not sure if my edits are always taking effect. I have made a change, could you try now and let me know if it's working? (Your issue sounds like it may have been due to editing the customers array in place, so I have accounted for this)
Wow, Thanks for your test and feedback, I've checked my random test code, the evil number
0
is the culprit, I've kill it. perhaps the testcase is right now, please help me to test it again ;-)Thanks for the ruby version. Looks like the random test cases are buggy though (one example below).
"Test for: nums = [671059108, 671053106, 671059186, 675059106, 671029106, 71059106, 671059506, 671259106, 631059106]
✘ Expected: "7135052293105868", instead got: nil"
Some arrays are shorter than others and the key is much too long.
Thanks again!
Loading more items...