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.
Hints:
The testing suite has low memory, if you're getting no answers or weird aborts in the testing suite, it's probably a memory overflow.
Hint 2...
You don't need to solve any linear equations for this. I started down that path with implementing matrix functions...it's all unnecessary. I didn't even use binomial coefficients. You can get by with just the coefficients you start with.. My final python solution is only 15 lines. I don't even use pow.
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 →
Hints: The testing suite has low memory, if you're getting no answers or weird aborts in the testing suite, it's probably a memory overflow.
Hint 2...
You don't need to solve any linear equations for this. I started down that path with implementing matrix functions...it's all unnecessary. I didn't even use binomial coefficients. You can get by with just the coefficients you start with.. My final python solution is only 15 lines. I don't even use pow.