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.
Arrays is a utility class for arrays in Java. Sort sorts an array. You actaully don't need to store the individual sums of the hourglasses but if you did you could find the max in less time than it takes to sort the array by iterating the elements keeping track of the largest.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
Arrays is a utility class for arrays in Java. Sort sorts an array. You actaully don't need to store the individual sums of the hourglasses but if you did you could find the max in less time than it takes to sort the array by iterating the elements keeping track of the largest.