Question

When choosing an algorithm for a specific task, what is the most important factor to consider first?

A The programming language you are most familiar with.
B The algorithm's time and space complexity relative to the expected input size and performance requirements.
C The popularity of the algorithm.
D The number of lines of code the algorithm requires.
E Whether the algorithm uses recursion or iteration.
Practice Next

Hey! Ask a query