← Divide & Conquer

Micro-Drill #73 — Sort with key function

Divide & Conquer Target: 5s

Custom key sorting is Python's primary sort mechanism. Foundation for interval and custom-order problems.

a.sort(key=lambda x: x[1])

Type it from memory. Go.

Practice Problems

Related Coding Drills

← Micro #72 Micro #74 →