← Pointer Manipulation

Micro-Drill #1 — Swap two elements

Pointer Manipulation Target: 5s

The fundamental swap is used in partition, sorting, and two-pointer algorithms. Must be instant.

a[i], a[j] = a[j], a[i]

Type it from memory. Go.

Practice Problems

Micro #2 →