Brute-force algorithm
In general, a brute-force algorithm is an algorithm that solves a problem by exhausting every possibility.
While brute-force algorithms are simple to implement, they often exhibit higher-order time complexities. This is because their design typically does not involve the consideration of a problem's underlying nature or any relevant mathematical theorems.
For smaller problems, brute-force solutions are a decent choice as you can take full advantage of the ease of implementation. However, as problems get larger, solving by brute-force quickly becomes impractical, so you will need to design a more efficient solution by thinking of the problem in a deeper way.