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.

The sliding window minimum algorithm

3 pointsby objectivefsabout 12 years ago

1 comment

twiceadayabout 12 years ago
This reminds me of the following problem:<p>Given a list of numbers, for each number n print (n, k) where k is the first number following n that is larger than n.<p>There is a linear solution