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.
I tried the same ,f(x) = (n/x)^(x). Maximising f(x) got me a solution of x = e , here constant e = 2.71828,
Which means for maximum power product k = n/2.71828.
Is it correct?
I am still stuck on first test case, but want to know if this approach is correct.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #183: Maximum product of parts
You are viewing a single comment's thread. Return to all comments →
I tried the same ,f(x) = (n/x)^(x). Maximising f(x) got me a solution of x = e , here constant e = 2.71828, Which means for maximum power product k = n/2.71828.
Is it correct?
I am still stuck on first test case, but want to know if this approach is correct.