Intersection of Two Prisms
Suppose that P1 is an
infinite-height prism whose axis is parallel to the z-axis, and P2 is
also an infinite-height prism whose axis is parallel to the y-axis. P1 is
...
分类:
其他好文 时间:
2016-05-27 13:02:42
阅读次数:
199
题目链接:https://leetcode.com/problems/search-in-rotated-sorted-array/
题目:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1...
分类:
其他好文 时间:
2016-05-27 12:28:17
阅读次数:
177
一天一道LeetCode
本系列文章已全部上传至我的github,地址:
https://github.com/Zeecoders/LeetCode
欢迎转载,转载请注明出处
(一)题目
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5...
分类:
其他好文 时间:
2016-05-27 11:39:47
阅读次数:
156
题目链接:https://leetcode.com/problems/customers-who-never-order/题目:
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never...
分类:
其他好文 时间:
2016-05-18 19:12:27
阅读次数:
113
There are two ways to solve this problem. One is to solve it front-back, the other is back-front.
I currently only wrote the back-front method:
Suppose we have such a string: a0, a1, a2.... ai, a...
分类:
其他好文 时间:
2016-05-12 21:31:25
阅读次数:
146
In order to get the lexicographical order, we need to always update the new order once we found it is up-datable. (This sentence actually is non-sense....)
An Example will make this clear.
Suppose ...
分类:
其他好文 时间:
2016-05-12 16:51:26
阅读次数:
171
Getting or Setting Pixels The safe (slow) way Suppose you are working on an Image<Bgr, Byte>. You can obtain the pixel on the y-th row and x-th column ...
分类:
其他好文 时间:
2016-05-10 23:42:54
阅读次数:
190
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are give ...
分类:
其他好文 时间:
2016-05-07 13:32:04
阅读次数:
216
Fire Net
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9427 Accepted Submission(s): 5493
Problem Description
Suppose that we have ...
分类:
其他好文 时间:
2016-05-07 11:04:42
阅读次数:
252
Mobile phones
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 17661
Accepted: 8173
Description
Suppose that the fourth generation mobile phone base station...
分类:
编程语言 时间:
2016-05-07 10:14:46
阅读次数:
209