TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why is processing a sorted array faster than an unsorted array?

2 pointsby aps-sidsalmost 10 years ago

1 comment

dalkealmost 10 years ago
There are 22 previous posting to this SO question. See <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=sorted%20unsorted%20array&amp;sort=byPopularity&amp;prefix&amp;page=0&amp;dateRange=all&amp;type=story" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=sorted%20unsorted%20array&amp;sort...</a> . The highest ranked, and also the one with the most comments (119) is <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4637196" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4637196</a> .