Problem 56155. Return the middle element of an NxN square matrix where N is odd
Let's say you are given an NxN square matrix where N is always going to be an odd number:
Your function should return 5.
Edge Case: Your solution must be able to handle empty matrices, and return a NaN in that case like:
Solution CommentsShow comments
Problem Recent Solvers20