Remove K Digits 题目: 给定一个Num字符串来表示一个非负的整数,移除其中k位字符,使得新生成的数字最小。 思路:将高位数字提前删除 对于leading zero需要小心处理 Largest Rectangle in Histogram Stack 里面存什么? heights中的元 ...
分类:
其他好文 时间:
2018-05-27 13:44:54
阅读次数:
122
问题 H: Snuke's Coloring 2-1 题目描述 There is a rectangle in the xy-plane, with its lower left corner at (0,0) and its upper right corner at (W,H). Each of ...
分类:
其他好文 时间:
2018-05-26 20:21:31
阅读次数:
199
A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates ...
分类:
其他好文 时间:
2018-05-25 22:54:14
阅读次数:
175
Rectangle Overlap A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) ar ...
分类:
其他好文 时间:
2018-05-21 00:04:17
阅读次数:
224
被统考草翻回来做题不太行啊,线段树和cdq都写挂细节 这题大概就是四维偏序吧,欸n怎么到了20w,只能水70啊 但是这个好像只要有1个在里面就可以ans就可以++了耶 突然想到高中奥数老师说的,大概是这样的 a<|x-2|/x^2+1 x取任意数,求a的范围,就相当于求后面那坨的最小值 运用这个思想 ...
分类:
其他好文 时间:
2018-05-20 16:31:52
阅读次数:
187
[抄题]: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [英文数据结构或算法,为什么不用别的数据结构或算法]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异 ...
分类:
其他好文 时间:
2018-05-20 12:57:58
阅读次数:
195
https://leetcode.com/problems/maximal-rectangle/description/ ...
分类:
其他好文 时间:
2018-05-20 10:48:25
阅读次数:
179
[抄题]: Given a grid where each entry is only 0 or 1, find the number of corner rectangles. A corner rectangle is 4 distinct 1s on the grid that form an ...
分类:
其他好文 时间:
2018-05-19 22:36:58
阅读次数:
195
1.operand 词根:operate n.[计] 操作数;[计] 运算对象,运算元 例如:Operand Stack 操作数堆栈操作数栈栈操作操作栈 2.binary adj. [数] 二进制的;二元的,二态的 例如:binary image 二进制映象 3.calculate 计算 4.exc ...
分类:
其他好文 时间:
2018-05-19 00:16:39
阅读次数:
215
描述 用C++实现一个形状类和矩形类,并完成求面积函数。 主函数里的代码已经给出,请补充完整,提交时请勿包含已经给出的代码。 int main() { int w, h; while(cin>>w>>h) { Shape* p = new Rectangle(w, h); cout<<p->Area ...
分类:
编程语言 时间:
2018-05-17 19:51:17
阅读次数:
266