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.
For people stuck on test cases 6 and above, in java the results requires numbers above the MAX_VALUE of int.
So it is necessary to change the returning array to long and change the "result" array in the main function to long[].
After I changed that i solved everything besides test case 12 which timed out which i eventually solved.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Absolute Element Sums
You are viewing a single comment's thread. Return to all comments →
For people stuck on test cases 6 and above, in java the results requires numbers above the MAX_VALUE of int. So it is necessary to change the returning array to long and change the "result" array in the main function to long[]. After I changed that i solved everything besides test case 12 which timed out which i eventually solved.