Leetcode выдает ошибку выхода за пределы массива
В LeetCode выдает странную ошибку (Index was outside the bounds of the array) при обращении к размерности массива массивов matrix.Length. Как тогда узнать размерность массива?
public class Solution {
public bool SearchMatrix(int[][] matrix, int target) {
if(matrix.Length == 0)
return false;
int n = matrix.Length;
....
