← Pointer Manipulation

Micro-Drill #4 — Rotate right by 1

Pointer Manipulation Target: 10s

Array rotation underpins circular buffer logic and modular index arithmetic.

a[-1:] + a[:-1]
# or
a.insert(0, a.pop())

Type it from memory. Go.

Practice Problems

Related Coding Drills

← Micro #3 Micro #5 →