Echo JS 0.11.0

<~>

jjrv 3346 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 3346 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.
selanac09 3347 days ago. link 1 point ▲ ▼
Fun with the binary search algorithm in javascript