An algorithm is a set of instructions which when executed in a sequence will solve a particular task or will produce a desired result. For example, we can have a series of instructions which when executed in a sequence can arrange elements in a list in ascending or descending order. It can be called as an algorithm which sorts all the elements present in a list.
Algorithms take in data represented by some type of data structures or basic data types like integers/strings and perform sequence of steps on the input data to give out a desired result.
This section includes tutorials on various algorithms, different approaches and ways to measure time space complexities.