Project Euler #101: Optimum polynomial

  • + 1 comment

    The way the test cases are provided for this problem is really weird.

    I made a mistake but my code could only go wrong with one specific input value. However I could pass no test cases other than #0.

    It misled me into thinking that my algorithm was wrong.

    When I modified my code to handle this special case, I jumped from 0% to 100%. So this special value is included in all test cases aside from the sample.

    Obviously, better distribution is possible.