Ad
  • Custom User Avatar

    The javascript version has now been solved over 1,100 times. I hope this issue is now resolved.
    If it still exists, please open another issue, post your code (put a line of three backticks ``` before and after the code) and mark it as "having spoiler content".

  • Custom User Avatar

    Hi, apologies for the delay in responding. Please could you post your solution here? (and mark it as a spoiler). This sample output looks strange as there are multiple duplicate tests.

    Thanks

  • Custom User Avatar

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

  • Custom User Avatar

    It seems javascript tests are not correct. My C++ code has passed all tests, but absolutely the same javascript code failed with better value:

    Big number random tests
    ✔ Test Passed: Value == 2211
    ✔ Test Passed: Value == 2211
    ✔ Test Passed: Value == 804
    ✔ Test Passed: Value == 1809
    ✔ Test Passed: Value == 603
    ✔ Test Passed: Value == 603
    ✔ Test Passed: Value == 603
    ✔ Test Passed: Value == 3015
    ✘ Expected: 1005, instead got: 804
    ✘ Expected: 1005, instead got: 804