我在知乎上看到一句话,如一道晴天霹雳: “如果一个选手比你小还比你强,你就可以退役了。”——单调队列的原理 题意 link(more:P1714) 给定一个长度为 \(n\) 的整数序列,从中找出一段长度不超过 \(m\) 的子...
[leetcode] 135.candy 分糖果问题 there are n children standing in a line. each child is assigned a rating value. you are giving candies to these children subjected to the following require...