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.
As the value range starts from -9 and the total hours glass has 7 elements so I have taken int maxSum = -63;
In general you can take int maxSum = Integer.MIN_VALUE.
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 →
As the value range starts from -9 and the total hours glass has 7 elements so I have taken int maxSum = -63; In general you can take int maxSum = Integer.MIN_VALUE.