You forgot to count your points, I'm surprised this passed
a < b is the same as b > a.
a < b
b > a
Also, map is faster than inject, so I agree that it's not the best solution.
Fixed
you don't need to downcase it
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!"?
only if the possible points can be a float or the boundary is changed to be inclusive
Don't you need to make the average a float?
Thanks! And good catch :)
A simple sub() would be fine since there's only one '-'. Other than that it's quite good
As others have said, test cases are broken.
Loading collection data...
You forgot to count your points, I'm surprised this passed
a < b
is the same asb > a
.Also, map is faster than inject, so I agree that it's not the best solution.
Fixed
you don't need to downcase it
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!"?
only if the possible points can be a float or the boundary is changed to be inclusive
Don't you need to make the average a float?
Thanks! And good catch :)
A simple sub() would be fine since there's only one '-'. Other than that it's quite good
As others have said, test cases are broken.