Skills101
← Tech dictionary

Data structures & algorithms

What is Algorithm?

An algorithm is a finite, step-by-step procedure for solving a problem or performing a task. A good algorithm is correct, terminates, and uses time and memory efficiently.

Example

Binary search is an algorithm that finds a value in a sorted list by repeatedly halving the search range.

Learn it properlyDSA tutorials — free, with diagrams, quizzes and a certificate

Related terms