Ad
  • Default User Avatar

    Fixed but I am happy to say that nobody cheated; no hard coding, it will have been longer to get all fixed inputs than to find a solution:-)
    PS: sorry to answer late but I have just been notified.

  • Default User Avatar

    Could you please add real randomized integer tests for positive scenarios?
    I could actually pass this kata just hard-coding all positive cases, and evaluating to -1 otherwise.
    It's not hard to get all test inputs.
    Since I've seen 'randomized integers' in test output, I assume that randomized tests are either broken or defined only for cases when -1 is expected as a result, i. e. negative ones.

  • Default User Avatar

    Check how long your code will run for m = 1025247423603083074023000250000 :)