You are viewing a single comment's thread. Return to all comments →
Python solution:
res = [] for x in range(0, 4): for y in range(0, 4): s = sum(arr[x][y:y+3]) + arr[x+1][y+1] + sum(arr[x+2][y:y+3]) res.append(s) print(max(res))
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 →
Python solution: