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.
Yes it's a bit ambiguous: new_avg is the function (Ruby, Python) and newavg is the parameter (the new average) to reach as you can see in
new_avg(arr, newavg) should return the expected donation (rounded up to the next integer) that will permit to reach the average newavg
. I will try to modify that puttingnavg
as parameter instead ofnewavg
:
new_avg(arr, navg) should return the expected donation (rounded up to the next integer) that will permit to reach the average navg
.newAvg is the name of the function in languages that don't accept underscores (Javascript, etc...). Thanks.