Ad
  • Default User Avatar

    can we add Node v10.x as a runtime because BigInt is worth it here.

    Not sure what you have against bigint, like sure there is some cryptic way to do it, is that the point of your submission? To only allow one specific resolution to a problem? But you can't come out and say that and would rather waste peoples time rather than enable suitable tooling?

    I mean if you want performance, why are you even using js in the first place? There is no good reason to not enable 10x, none at all. What a waste of time forcing people to use years old stacks.

    This issue is NOT closed, there isn't any good rational for doing what you are doing here.

  • Default User Avatar

    can we add Node v10.x as a runtime because BigInt is worth it here.

  • Default User Avatar

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

  • Default User Avatar

    Works fine in chrome, not here. (javascript)

    returns: Expected 23 got 8779

    It is obvious something is wonky with the submit tests, I know this function works, and I know from previous experiments that 8779 is the answer to the NEXT test pass, but submit test is broken.

    Am I missing something "obvious" myself? I am not doing anything global or modifying shared objects (and IIRC this runs single threaded). I think the submit answer key is wrong at the time of this writing personally.

    will post my solution as a spoiler response if anyone wants to tell me what I'm doing wrong, or confirm.

  • Default User Avatar

    It is nice but mine is faster ;)
    You can usually find a faster solution than the terse ones, plus I understand them better.
    Some of the regex ones are crazy fast though, but some are slow (and I only js in the browser, so this environment is another variable, for me anyway)

  • Default User Avatar

    Yah good eye, I may have to retract that comment, not sure what happened but it isn't working in chrome now.

    I might have been messing with polyfills, ah well it would be nice syntax, swiss army array objects.

    Also it is a little silly, it is a triangle function so it will only ever have the 3 arguments, but I was hoping to experiment with lists in js more.

  • Default User Avatar

    bits and signs are challenging in js, learned a lot.

  • Default User Avatar

    The instructions should clearly state that atob or btoa are not allowed, otherwise they aren't instructions.

  • Default User Avatar

    Thanks, enjoyed developing and optimizing this in chrome, had it print out the spiral x by y every step and was able to narrow down the end game fairly quickly.

  • Default User Avatar

    It's bulky but it's fast (at least in chrome) and easy to follow :)

  • Default User Avatar

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

  • Default User Avatar

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