Data structures · Stacks

Stacks reverse things

Converting a number to binary produces its digits backward, and a stack puts them right with no extra thought.