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.
Great solution. Instead of finding the maximum of the array, you found the maximum of addition and handled the range by subtracting the "sum" after the range is over. Brilliant thinking. Hats off!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Great solution. Instead of finding the maximum of the array, you found the maximum of addition and handled the range by subtracting the "sum" after the range is over. Brilliant thinking. Hats off!