Algorithms and Data Structures · Junior · Question 72 of 75

What does "brute force" mean for an algorithm?

Explanation

Brute force is usually the easiest correct solution and a good starting point in an interview. Then you look for repeated work to remove, for example with a hash map, sorting or two pointers.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 72

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz