摘要: 题目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the 阅读全文
posted @ 2017-09-19 21:49 Vincent丶丶 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 转自九章算法公众号 题目描述 给出包含n个整数的数组,你的任务是检查它是否可以通过修改至多一个元素变成非下降的。一个非下降的数组array对于所有的i(1<=i<n)满足array[i-1]<=array[i]。n属于区间[1,10000]。 样例1: ⅰ 输入: [4,2,3] ⅱ 输出: Tru 阅读全文
posted @ 2017-09-19 09:29 Vincent丶丶 阅读(249) 评论(0) 推荐(0) 编辑