"Correctness gets you in the door. Cost decides whether you're allowed to stay."
What Makes Something an Algorithm
An algorithm is a recipe: a finite list of well-defined steps that turns an input into an output. "Finite" matters — a recipe that never ends isn't a recipe, it's a stovetop fire. "Well-defined" matters — "add salt to taste" is fine for a human cook but useless to a machine, which needs "add 4 grams of salt." Every step has to be unambiguous and actually finishable.
That's the boring half. Here's the half that matters: the same correct output can be produced by recipes with wildly different price tags.
Two Recipes, Same Dish, Different Bill
Say you want the sum of every number from 1 to n. Recipe A: start at 0, add 1, add 2, add 3 … add n. For n = 1,000,000 that's a million additions. Recipe B: notice that the numbers pair up (1 + n, 2 + n−1, …) and the answer is just n * (n + 1) / 2 — three operations, no matter how big n gets. Both give the identical, correct answer. One does a million steps; one does three.
The nine-year-old Gauss supposedly spotted Recipe B in seconds while his classmates ground through Recipe A by hand. That's not about being a genius — it's about seeing that the obvious recipe and the cheap recipe are usually not the same recipe. Training that eye is what this quest is for.
Why "At Scale" Is the Whole Story
For n = 10, who cares — both recipes finish before you blink. The cost difference only screams when the input grows. A program that's snappy on your laptop's 100 test rows and dies on production's 100 million rows wasn't wrong. It was expensive, and nobody measured the price until the bill came due. The next track, Complexity, gives you the tool to read that price tag before you ship.