i still can't fix it!
Just found my diff error... I pulled a sneaky on myself.
Very nice. I was on my way down this path but got a bit lost in the math so I abandoned it. Should have stuck with it, very satisfying solution.
This comment is hidden because it contains spoiler information about the solution
I got the same error when I miscalculated previous rank. If a user ranked 1 completes an activity ranked -1 they will receive 1 progress.
Dude. That's a damn cool solution. I mean, if you did that in production on my team I'd take your bloody head off, but.... Holy hell that's cool.
If you are getting almost every test case correct, but somehow there are around 11 left with the error:
After applying rank of -1 the progress was expected to be 21, but was actually 20
It seems like those are broken test cases, but they're not. No spoiler, but maybe re-check your diff calculation.
i still can't fix it!
Just found my diff error... I pulled a sneaky on myself.
Very nice. I was on my way down this path but got a bit lost in the math so I abandoned it. Should have stuck with it, very satisfying solution.
This comment is hidden because it contains spoiler information about the solution
I got the same error when I miscalculated previous rank.
If a user ranked 1 completes an activity ranked -1 they will receive 1 progress.
Dude. That's a damn cool solution. I mean, if you did that in production on my team I'd take your bloody head off, but.... Holy hell that's cool.
If you are getting almost every test case correct, but somehow there are around 11 left with the error:
It seems like those are broken test cases, but they're not. No spoiler, but maybe re-check your diff calculation.