Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the pers ...
分类:
其他好文 时间:
2017-11-27 21:36:13
阅读次数:
119
Given an array A (index starts at 1) consisting of N integers: A1, A2, ..., AN and an integer B. The integer B denotes that from any place (suppose th ...
分类:
其他好文 时间:
2017-11-24 15:06:12
阅读次数:
195
poj-1195-Mobile Phones Mobile phones Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 20907 Accepted: 9662 Description Suppose that the four ...
分类:
其他好文 时间:
2017-11-18 21:58:36
阅读次数:
177
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 2). You are given a target va ...
分类:
其他好文 时间:
2017-11-13 11:35:15
阅读次数:
162
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there ar ...
分类:
其他好文 时间:
2017-11-05 15:35:15
阅读次数:
142
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h ...
分类:
其他好文 时间:
2017-11-04 16:29:21
阅读次数:
126
Suppose we have two workers. Each worker has an id of 0 and 1. Also suppose that we have jobs arriving all the time, each job has also an identifier 0 ...
分类:
编程语言 时间:
2017-10-31 11:01:05
阅读次数:
199
原题链接在这里:https://leetcode.com/problems/ipo/description/ 题目: Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Ve ...
分类:
其他好文 时间:
2017-10-28 11:18:07
阅读次数:
173
Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of t ...
分类:
其他好文 时间:
2017-10-24 22:59:40
阅读次数:
293
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything ...
分类:
其他好文 时间:
2017-10-24 11:34:41
阅读次数:
158