4 ms·
Why is processing a sorted array faster than an unsorted array?
- dalke 11y agoThere are 22 previous posting to this SO question. See https://hn.algolia.com/?query=sorted%20unsorted%20array&sort=byPopularity&prefix&page=0&dateRange=all&type=story https://hn.algolia.com/?query=sorted%20unsorted%20array&sort... . The highest ranked, and also the one with the most comments (119) is https://news.ycombinator.com/item?id=4637196 https://news.ycombinator.com/item?id=4637196 .