Ad
  • Custom User Avatar

    You don't have to ask that every time

    Why don't they just post it, every time? Why have the guy who doesn't have the problem do the work? How else will the guy who does ever learn?

    I've said it a thousand times: "Help us help you."

  • Custom User Avatar

    Fixed

  • Custom User Avatar

    Tests generate 0, 1, and 2, and the solution makes negative values.

    Also, the actual and expected are reversed, but apparently you figured that out.

    I'll fix this.

    @rowcased: You don't have to ask that every time, check one's profile first (if multiple languages, then if they've completed it like in this case, you can find the language under their solutions).

  • Custom User Avatar

    Java. (both answered at the same time)

  • Custom User Avatar

    to which language are you referring?