You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
a = [] result = 0 for i in range(int(input())): a = list(map(int, input().split())) result += a[i] - a[- 1 - i] print(abs(result))
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)