3 ms·
After its sorted you could add a break condition when the array is less than 128 that way it would make it faster.
by samfisher83 9y ago
After its sorted you could add a break condition when the array is less than 128 that way it would make it faster.
- Kesty 9y agoThis is just a simple example for this kind of situation. Of course, you could make it faster by removing everything under 128 from the array before starting the loop, but it's not really the point here.