Why Do Programmers Need Algorithms at All?

To solve complex problems

With algorithms, you will be able to write clean and efficient code. Let’s imagine, you want to find Ben Smith, with whom you were in the summer camp 15 years ago, and finally confess your feelings. You have to check millions of users with the name Ben Smith and sort them by relevance for that. If you don’t want to wait another 15 years while your code is running, you need to learn search and sorting algorithms.

To crack the interviews

You also need to know algorithms to crack the coding interviews. Leetcode problems would be solved faster if you have a knowledge of data structures and algorithms. Your solutions will be faster and more elegant.

Algorithms are the reason why Google search is so fast, and pretty much why computers are in the state they’re in today. And it is impossible to be a programmer not knowing them.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Software Developer, +12 years coding. Bachelors in CompSci.