Please help me out with this problem
Hackerank nutanix interview problem
see:
- Negative values possible.
- Maximum sum can be less than zero.
- Range of element value is -9 to 9.
- Numbers to be summed for each hourglass = 7.
- Minimum possible value for sum = 7*-9=63
So we’ll initialize our maxSum to -63. From there, we just calculate the sums of all hourglasses and return the maxSum