I managed to resolve. I was just complicating the logic a lot, I just reversed the reasoning and it worked. Thanks for the answer!
This comment is hidden because it contains spoiler information about the solution
I think that because it deals with the use of prototype and "this" it ends up getting a little confusing for beginners. But after some study I managed to solve it, I liked this exercise.
Ah yes, I really misunderstood. Thank you for your help.
Ok, thanks bro.
Facing a problem:"random cases: n=78439 - STDERR - Execution Timed Out (12000 ms)". Any help with this big numbers?
Something is wrong. "Incorrect answer for a=5, b=-1: expected 4 to equal 14". And other wrong outputs.
Loading collection data...
I managed to resolve. I was just complicating the logic a lot, I just reversed the reasoning and it worked. Thanks for the answer!
This comment is hidden because it contains spoiler information about the solution
I think that because it deals with the use of prototype and "this" it ends up getting a little confusing for beginners. But after some study I managed to solve it, I liked this exercise.
Ah yes, I really misunderstood. Thank you for your help.
Ok, thanks bro.
Facing a problem:"random cases: n=78439 - STDERR - Execution Timed Out (12000 ms)". Any help with this big numbers?
Something is wrong.
"Incorrect answer for a=5, b=-1: expected 4 to equal 14". And other wrong outputs.