You are viewing a single comment's thread. Return to all comments →
My Python solution:
max = -100 for i in range(4): for j in range(4): sum = arr[i+1][j+1] for x in range(3): sum += arr[i][j+x] + arr[i+2][j+x] if sum > max: max = sum print(max)
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
My Python solution: