Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (
转载
2018-06-06 23:41:00
103阅读
A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po
转载
2018-06-18 15:31:00
73阅读
One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re
转载
2018-06-18 00:22:00
98阅读
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years
转载
2018-06-03 11:57:00
99阅读
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules
转载
2018-05-31 20:32:00
96阅读
A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open
转载
2018-07-18 12:23:00
130阅读
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g
转载
2018-07-10 22:36:00
113阅读
It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if
转载
2018-07-08 18:45:00
70阅读
When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A "soci
转载
2018-07-08 13:16:00
150阅读
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years
转载
2018-06-24 22:36:00
44阅读
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n
转载
2018-06-21 09:44:00
77阅读
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra
转载
2018-06-03 23:50:00
96阅读
Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t
转载
2018-07-12 17:37:00
136阅读
One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions
转载
2018-07-08 21:07:00
116阅读
在ZIP归档文件中,保留着所有压缩文件和目录的相对路径和名称。当使用WinZIP等GUI软件打开ZIP归档文件时,可以从这些信息中重建目录的树状结构。请编写程序实现目录的树状结构的重建工作。 输入格式: 输入首先给出正整数N(≤),表示ZIP归档文件中的文件和目录的数量。随后N行,每行有如下格式的文
转载
2020-02-12 20:22:00
126阅读
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can
转载
2018-06-03 22:36:00
108阅读
时间限制400 ms 内存限制65536 kB 代码长度限制16000 B There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over t
转载
2018-06-02 23:27:00
68阅读
Given a non-empty tree with root R, and with weight W~i~ assigned to each tree node T~i~. The weight of a path from R to L is defined to be the sum of
转载
2018-07-11 13:57:00
77阅读
$30$分水题~。 检查所有节点(除了根节点)和它的父节点的关系,判断是否破坏最大堆或者最小堆的性质。 const int N=1010; int heap[N]; bool maxheap,minheap; int n; void dfs(int u,vector<int> &post) { if
转载
2021-03-11 22:02:00
28阅读
人类学研究对于家族很感兴趣,于是研究人员搜集了一些家族的家谱进行研究。实验中,使用计算机处理代,而他们的丈夫
原创
2023-05-25 16:25:07
108阅读