Brute Force Is a Valid Strategy
When small N makes it the answer.
Brute Force Is Not Cheating
Trying every possibility is a real, respected strategy. When the input is small, the simplest answer is often the smartest one. 🙂
What Brute Force Means
A brute force solution enumerates every candidate answer and checks each one. No clever trick, just guaranteed coverage of all cases.
All lessons in this course
- Brute Force Is a Valid Strategy
- Enumerate with itertools
- Bitmask Subset Enumeration
- Trim the Search Space Smartly