The test cases are ridiculous


  • 0
    T

    The test cases are ridiculous b/c there is a bunch of 0s with only one 1. You can increase the efficiency dramatically if you judge whether the given A[i][j] is equal to 0. Though the time complexity is totally the same (O(A.rowA.columnB.column)).


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.