Ad
  • Custom User Avatar

    Forbidding toString is useless if you don't also forbid n+"" ( which is shorter! ) but a lot harder to test for ( and then there's `${n}` ).

    I hate restricted JS in general, but this one is worse than a lot of others. At least try to explain why the restrictions are there, what point you are trying to make. Also, handle 0, that really is a no-brainer.

  • Custom User Avatar

    No test for isPositive(0) === false, and your solution returns the wrong result for it.

  • Custom User Avatar

    The anticheat is weak.

  • Custom User Avatar

    Sample tests are not testing anything.