My edge-test-1 is failing I have tried everything. Please give me test cases for this.
Did you check the base cases like when your matrix is having 0 rows and 0 columns?
May be try for
0 0 3 1 2 3
Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.