Array
3417. Zigzag Grid Traversal With Skip
Given a matrix grid. Traverse it in a snake pattern (even rows left-to-right, odd rows right-to-left) and, starting from the first cell, take every other cell of the traversal (skipping one each…
Loading…