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 value we are maximising is the sume of the squares of the largest value from each list. Which means each list can only contribute one value to the sum and that value is the largest in the list regardless of the sign.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Maximize It!
You are viewing a single comment's thread. Return to all comments →
The value we are maximising is the sume of the squares of the largest value from each list. Which means each list can only contribute one value to the sum and that value is the largest in the list regardless of the sign.