What zigzag like

  • 0

    Zigzag is like the pic below

    the key of this question is to calculate the relation ship between row and column.
    so we can come up with a solution of O(n) time complexity, just like below

Log in to reply

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