What are the contraints of this problem

and what is the time complexity of solution expalined !!

@aryan_007,
The time complexity is O(n^3)

and what are the contraints of n and m ??

@aryan_007,
1 <= R, C <= 100

Constraints have been updated on the question as well :slight_smile:

okayyy sir , thank you sir !!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.