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.
Hi, maybe I am confused by what constitutes an hourglass...but wouldn't 15 be the largest hourglass sum for this test case? However the expected output is 13.
2D Array - DS
You are viewing a single comment's thread. Return to all comments →
Hi, maybe I am confused by what constitutes an hourglass...but wouldn't 15 be the largest hourglass sum for this test case? However the expected output is 13.
1 1 1 0 0 0
0 1 0 0 0 0
1 1 1 0 0 0
0 9 2 -4 -4 0
0 0 0 -2 0 0
0 0 -1 -2 -4 0