Assessment failing in the perf test cases

In this module 11, I am not getting why the perf test cases are failing. I had written a solution with complexity O(R log C) and on submission, 2 of the perf testcases were failing. And when I am submitting a solution with O(R + C) complexity (which is supposed to be better than O(R log C)), then all the perf cases, as well as the sample test case, are failing.
I am not sure where I am wrong. Am I supposed to optimize it further?
@Sumanth_Uppala @aritra-crio-ta

I believe there is an implementation mistake in your O(R + C) algorithm since all base cases are failing too. Please use the given test cases to solve it :

6 9
1 3 4 5 8 14 16 17 19
20 21 23 24 29 31 32 33 35
36 37 38 42 43 44 45 46 48
52 55 56 57 59 62 63 64 66
67 70 71 72 73 74 75 78 82
83 85 88 90 92 94 95 97 100
4
96
26
64
55

My code is giving right answer for the above test case. Also the assessment report is showing that base and edge test cases are passing. Only perf test case and the sample test case is failing. I can understand perf test cases failing, but why sample one? It’s passing locally.

EDIT: I just submitted my again without changing anything (except for auto formatting). And this time the assessment was successful. I don’t get it. This has to system issue.

Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.