How To Sort Array in JavaScript
Recently I have been doing a lot of interview assessments and the ones that I usually find a joy to do is all those small data structures problems, like how do you sort a set of random numbers in ascending order. So let's try to do that in JavaScript...
focussedflyer3.hashnode.dev4 min read
Shivam Latawa
Senior Front End Developer | ThoughtWorks
Nice read. I have been asked a number of times about best sorting algorithms and the complexity in the interviews but frankly I have never used anything except Array.sort() in real life problems. The interviewer is checking the problem solving ability of the candidate because you cannot judge anyone based on if they can sort array with Array.sort() or not!