Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 putting navg as parameter instead of newavg

    : 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.

  • Custom User Avatar

    Would you be able to fix a spelling inconsistency? In the instructions, you refer to the function both as "new_avg" and "newAvg".