You are viewing a single comment's thread. Return to all comments →
for i in range(4): for j in range(4): hourglasses.append(sum(arr[j][i:i + 3]) + arr[j + 1][i + 1] + sum(arr[j + 2][i:i + 3])) print(max(hourglasses))
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 →