TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
The sliding window minimum algorithm
3 points
by
objectivefs
about 12 years ago
1 comment
twiceaday
about 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