Diagonal Difference

  • + 0 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?