Glossary: Coding Interviews in C++
Brute force
Also written: brute-force
The simplest correct solution, which tries every possibility and is usually slow. You say it first, with its Big-O, so you have a working answer to improve.
Glossary: Coding Interviews in C++
Also written: brute-force
The simplest correct solution, which tries every possibility and is usually slow. You say it first, with its Big-O, so you have a working answer to improve.