Why is the expected output of this case false?


  • 0
    Z

    "..4...63.",
    ".........",
    "5......9.",
    "...56....",
    "4.3.....1",
    "...7.....",
    "...5.....",
    ".........",
    "........."

    Input:
    ["..4...63.",".........","5......9.","...56....","4.3.....1","...7.....","...5.....",".........","........."]

              Output: 
              true 
            
    
            
              Expected: 
              false

  • 0
    I

    if these strings are the rows the these two "...56...." "...5....." define a "5" in the 4th column- which is not allowed


Log in to reply
 

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