Monotonous queue rocks!
Merge pull request #18 from Meng-Gen/problem-485

Monotonous queue rocks!