摘要: 转载自:https://blog.csdn.net/zuzhiang/article/details/78134247 定义: 单调栈,顾名思义,是栈内元素保持一定单调性(单调递增或单调递减)的栈。既然是栈,就满足后进先出的特点。与之相对应的是单调队列。 单调栈有以下两个性质: 1、若是单调递增栈, 阅读全文
posted @ 2019-04-29 20:43 知道了呀~ 阅读(395) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/38228 Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values in the interva 阅读全文
posted @ 2019-04-29 20:29 知道了呀~ 阅读(241) 评论(0) 推荐(0) 编辑