▲ 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.
MaxArt 2653 days ago. link 2 points ▲ ▼You just have to explain why you used such a convoluted algorithm to get a random number from 10000 to 99999.