Ad
  • Custom User Avatar

    because you're putting spilt, not split?

  • Custom User Avatar

    I am getting the following test cases failing:

    Get functions work with no temperatures stored
    get_max() doesn't work. Expected but got 110.
    get_min() doesn't work. Expected but got 2.
    get_mean() doesn't work. Expected but got 31.25.
    get_mode() doesn't work. Expected but got 110.

    But there is literally no way for it to get those values if there are no temperatures stored.

    I've run this locally too, and when there are no temperatures stored, I get nulls. I'm initializing the mean, mode, min and max as nulls and only recalculating them via the insert method. If no values are inserted, then the insert value hasn't been called and there is literally no way for them to return anything but null.

    Have I misunderstood something here? Or are the test cases just dodgy?

  • Custom User Avatar

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