What if the number of rows is 4?


  • 1

    I think this question's description is not clear enough.

    What if the number of rows is 4? How will the second column be like?


  • 4
    S

    I agree with you. I spend some time to figure this out.
    if the input numRows = 4, I think the expected result will looks like

    P       I       N    
    A    L  S    I  G
    Y  A    H  R
    P       I
    

    The output will be like : PINALSIGYAHRPI


Log in to reply
 

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