So to invert it vertically, we'd start at 1
, where there's nothing to flip or swap, and it would stay put. We've now processed the first row.
Moving on to the second, we encounter 2
and 3
, so we'd swap them and get:
SNIPPET
1 1
2 / \
33 2
So to invert it vertically, we'd start at 1
, where there's nothing to flip or swap, and it would stay put. We've now processed the first row.
Moving on to the second, we encounter 2
and 3
, so we'd swap them and get:
1 1
2 / \
33 2