You are viewing a single comment's thread. Return to all comments →
maxx=-99 for i in range(len(arr)-2):
for j in range(len(arr)-2): a=arr[i][j] b=arr[i][j+1] c=arr[i][j+2] d=arr[i+1][j+1] e=arr[i+2][j] f=arr[i+2][j+1] g=arr[i+2][j+2] sum=a+b+c+d+e+f+g maxx=max(sum,maxx) return maxx
Seems like cookies are disabled on this browser, please enable them to open this website
2D Array - DS
You are viewing a single comment's thread. Return to all comments →
maxx=-99 for i in range(len(arr)-2):