O(N^2) in terms of what?


#1

What is N here? Number of elements on the rectangle or side of the rectangle?


#2

Must be side of rectangle.


#3

Both are the same.

This random text is to skip the character limit


#4

O(RxC) is what they mean. Basically, a quadratic solution.


#5

That’s a linear solution on the size of the input, not quadratic.