Ad
  • Custom User Avatar

    With my sol'n (JavaScript), a single randomized test will sometimes resolve before the function is done evaluating, resulting in undefined. Local tests with the same alg and input yield the correct result (frequently when n = 57167).