Question on input format (python)


  • 0
    A

    The testcase I fail is
    ["NumMatrix","sumRegion","sumRegion","sumRegion"]
    [[[[1],[-7]]],[0,0,0,0],[1,0,1,0],[0,0,1,0]]

    I use python. Based on this format, the initial matrix is [[[1],[-7]]] (THREE parentheses pairs)
    Why? The initial matrix should be List[List[int]]. So it should be [[1], [-7]] (just TWO
    parentheses pairs)
    h


Log in to reply
 

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