We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think something I find confusing is that the format of the input is not well explained. Is the input an integer that specifies the number of rows and columns and a list of the integers? Or what does the input look like?
so if they say the input is:
3
4 5 6
5 8 9
10 2 3
really the input is more like diagonalSum(3,[4 5 6 5 8 9 10 2 3]) ? Is that correctr?
Cookie support is required to access HackerRank
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 →
I think something I find confusing is that the format of the input is not well explained. Is the input an integer that specifies the number of rows and columns and a list of the integers? Or what does the input look like?
so if they say the input is: 3 4 5 6 5 8 9 10 2 3 really the input is more like diagonalSum(3,[4 5 6 5 8 9 10 2 3]) ? Is that correctr?