0

Brute force first

Foundationsused in ~95% of apps

You will sit staring at a problem waiting for the clever idea to arrive, and it will not arrive. Meanwhile there was an obvious slow answer you refused to write because it felt like cheating. That refusal is the single biggest thing keeping beginners stuck.

Core idea. Brute force means the most obvious way, however slow: try everything. It is a real answer, it earns real marks, and it is almost always the thing that shows you where the fast answer is hiding.
Playground, this isn't a screenshot
Find two numbers that add up to 9
Brute force. Try every pair
2 + 79 found
2 + 1113
2 + 1517
7 + 1118
7 + 1522
11 + 1526

6 checks for 4 numbers. Correct, and it grows badly.

What the slow version reveals

Look at the first line. Standing on 2, you already know you need 7. You did not need to try 2 with everything. You needed to ask whether 7 was there.

That single observation is the fast solution, and it only became visible because the slow version was written down first.

The slow answer is not a failure on the way to the real answer. It is how the real answer is found.

↑ play a little first, then dig in