Whether you are a backend or frontend developer you should learn algorithms. Maybe your functionality is working for small-size data or inputs but when it comes to large-scale writing an optimal approach is necessary.
Disclaimer: The purpose of the post is only to make you understand the importance of algorithms and analysis of your solution.
People often say if I am doing development where would I use algos? I thought let's take an example of where you have a large number of characters and there is a search option where people search a term and that term will be highlighted in the text.
Now I implemented it with a basic brute force approach that is O(n^2) (quadratic time). In small cases, it is working fine. But the size of the text gets bigger it takes lots of time. So I use an algo called KMP string matching algo that helps to identify any string present in the other string or not in linear time. The performance is significantly improved.
Now people say there is built function like JS's replace() methods. Ya, you can use it. But let's say what if you want develop a personal library for your org.
It is only a small example of the use case of algorithms. While working on large-scale projects providing a good solution is very very very important.
This is the post only for those who think if I do development I don't need to know Algorithms
But if you want to be a good developer you should combine everything.
Here is the result that I have got after performance analysis: