4 ms·
Besides calling Array.sort()? When was the last time a front-end developer, or an app developer, or any developer actually, needed to implement a sort algorith
by invaliduser 10y ago
Besides calling Array.sort()?
When was the last time a front-end developer, or an app developer, or any developer actually, needed to implement a sort algorithm?
I started programming in the 90s, so I did a lot of it, implemented sorts, btrees, tries, you name it. When was the last time I need to implement it? Honestly, it's been a very long time, around 10 years, and it was just a bloom filter in c++ because it's not very used and few libraries have it.
Could I provide an implementation in an interview situation? Nope. And not interested in using my poor memory for it. If I ever need to implement a specific algorithm, say in a new language in which nobody did it before, I just need to make a search on google, take a few minutes to study it (for a sort), or hours (for more complex structures like btrees or algorithms I never used before), and use my knowledge/experience.
Of course, I don't need to implement those algorithms, but I use them a lot, everywhere. That's where interview questions should focus, where and when to use them appropriately, because that's the business case.