Ad
  • Custom User Avatar

    Because you should return the result, and you're always returning 0. Note that your code is wrong, btw, and the results are not the expected ones.

  • Custom User Avatar

    There is this requirement:

    The answer is always greater or equal to 0, no matter if it was in the past or it is in the future.

    You sohuld always return a positive value, for both future and past times.

  • Custom User Avatar

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