We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #101: Optimum polynomial
You are viewing a single comment's thread. Return to all comments →
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.