Hello, DegaKiller! I don't know what your specific case is, but note that in some tests, pin = "123\n" or "1234\n" (line break, not space). I got caught on this and also thought it was a bug.
I have the same result as expected with different attemps, however, when I tried the test always shows (expected undefined to equal). I am not sure what it actually means.
I check the documentation when it looks exactly as the result but I couldnt figure it out either.
Any advice?
Many thanks in advance :)
Pay Attention To The Numbers In Your Life They Are Vastly Important.
expected undefined to equal 'Pay Attention To The Numbers In Your Life They Are Vastly Important.'
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.
Instructions say that it returns the sum of all the multiples of 3 or 5 below the number passed in". The number passed in was 20, so it shouldn't be added, right? But the answer expected me to sum it.
I managed to resolve. I was just complicating the logic a lot, I just reversed the reasoning and it worked. Thanks for the answer!
Hello, DegaKiller! I don't know what your specific case is, but note that in some tests, pin = "123\n" or "1234\n" (line break, not space). I got caught on this and also thought it was a bug.
This comment is hidden because it contains spoiler information about the solution
Please see this link and this link.
I have the same result as expected with different attemps, however, when I tried the test always shows (expected undefined to equal). I am not sure what it actually means.
I check the documentation when it looks exactly as the result but I couldnt figure it out either.
Any advice?
Many thanks in advance :)
Pay Attention To The Numbers In Your Life They Are Vastly Important.
expected undefined to equal 'Pay Attention To The Numbers In Your Life They Are Vastly Important.'
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.
Which language are you saying that happens? That isn't happening neither in TypeScript nor in Java, that are the two languages you worked on.
Instructions say that it returns the sum of all the multiples of 3 or 5 below the number passed in". The number passed in was 20, so it shouldn't be added, right? But the answer expected me to sum it.
Ah yes, I really misunderstood. Thank you for your help.
Ok, thanks bro.
Don't use nested loops.
Facing a problem:"random cases: n=78439 - STDERR - Execution Timed Out (12000 ms)". Any help with this big numbers?
-1 + 0 + 1 + 2 + 3 + 4 + 5 in fact equals 14, perhaps you misunderstood the statement
Why do you say this is wrong?
Something is wrong.
"Incorrect answer for a=5, b=-1: expected 4 to equal 14". And other wrong outputs.