For input m = 3 , n =3 and ops =  . How come the output is 9? Isn't this a mistake ?
You probably figured this out, but no, it's not a mistake. With this input you end up with an array with 9 elements that are each 0. 0 is therefore the maximum integer, and there are 9 of it.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.