Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I think the "input" referred to here is the String variable-argument passed into the function.

  • Custom User Avatar

    Ah, that's a good point. I was under the assumption that this was an entirely new user with no pre-existing points accumulated. Thanks for the insight!

  • Default User Avatar

    You're implying the progress was equal to 0 before the rank update. Are you sure that is the case ? It's likely that the progress was already at 40, and then (40 + (8 * 8 * 10)) % 100 === 680 % 100 === 80.

  • Custom User Avatar

    I'm attempting the Java tests and am a little stuck on the "user rank of -8, applying (activity) rank of 1".

    My implementation brings user rank to (-2) <-- this meets assertion conditions
    and 640 progress, which means 40 progress has rolled over after ranking up.

    But the test expected 80 progress?

    " After applying rank of 1 the progress was expected to be 80, but was actually 40 expected:<80> but was:<40> "

    Any help here is greatly appreciated as I can't think of a square * 10 combination that would leave me with 80 and also get me to rank -2.