▲ Algorithms in JavaScript at selanac82.github.io▼2 up and 1 down, posted by selanac09 2654 days ago 3 comments
jjrv 2653 days ago. link 2 points ▲ ▼They insert new numbers in the middle (using array.splice) as needed to keep the array sorted. This sounds O(N^2). Pretty terrible process overall really, for such a simple task.