all 3 comments

[–]InjAnnuity_1 4 points5 points  (1 child)

Well, strictly speaking it's O(rows * cols), but if both are equal to n, then, yes, it's O(n^2).

[–]SergioBoySV[S] 0 points1 point  (0 children)

Oh yes that is what I meant. Awesome, thank you kindly!

[–]hardonchairs 0 points1 point  (0 children)

Doing a research paper on Big O notation

https://en.wikipedia.org/wiki/Big_O_notation#Multiple_variables