Should the type of matrix be List[str] rather than List[List[str]]?

  • 0

    i'm quite bewildered when i saw the type of matrix.
    if the type of matrix is List[List[str]], then the str here should be a single character, and the input should be something like [['1','0','1','0'],['1','0','1','1'],['1','1','1','1'],['1','0','0','1']], right?

  • 0
    This post is deleted!

  • 0

    The OJ's input format is like ["10", "01"], but your Python solution will actually get that like [[u'1', u'0'], [u'0', u'1']] (as you can see by printing it).

Log in to reply

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