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

  • Default User Avatar

    I don't understand the maths (as in why the angles add up the way they do), so I googled it, which just gave me the answer. I understand the calculation in terms of the output of the code, but I clearly do not understand how polygon angles work. I'm not sure that this would come up outside of an exercise trying to teach the maths though.

  • 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

    Java language. I had to try a few times until it passed on the atempts, because sometimes i was having these expectations on the tests.

  • Custom User Avatar

    to which language are you referring?

  • Custom User Avatar

    whats up with the random tests expecting 0, -180 and -360, sometimes?