Search
⌘K

Leetcode 3417. Zigzag Grid Traversal With Skip

Traverse the m×n grid in a row-wise zigzag (left-to-right on the first row, right-to-left on the next, etc.) starting at (0,0), and collect the values of every other visited cell (visit the first cell, skip the next, and repeat). Return the sequence of collected values in traversal order.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.