← Pointer Manipulation

Micro-Drill #11 — Reverse a string

Pointer Manipulation Target: 5s

String reversal is the most basic pointer drill. Used in palindrome checks and word reversal.

s[::-1]

Type it from memory. Go.

Practice Problems

Related Coding Drills

← Micro #10 Micro #12 →