Ivan comes again!
Description
The Fairy Ivan gave Saya three problems to solve (Problem F). After Saya finished the first problem (Problem H), here comes the second.
This is the enhanced ve...
分类:
其他好文 时间:
2015-07-22 00:12:04
阅读次数:
182
Hello World!
Description
We know that Ivan gives Saya three problems to solve (Problem F), and this is the first problem.
“We need a programmer to help us for some projects. If you show u...
分类:
其他好文 时间:
2015-07-21 17:17:43
阅读次数:
130
题目:http://www.spoj.com/problems/ORDERS/ and http://acm.hdu.edu.cn/showproblem.php?pid=2852
题意:spoj227:告诉每个位置前面有多少个数比当前位置小,求出原序列。hdu2852 设计一个容器,支持几种操作:增加/删除元素,求比a大的数中第k小的数是多少。
分析:两个题思路都是求数组里面的第K小的数。开...
分类:
编程语言 时间:
2015-07-21 13:03:25
阅读次数:
158
Maximum Gap: https://leetcode.com/problems/maximum-gap/
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Ret...
分类:
其他好文 时间:
2015-07-20 16:34:03
阅读次数:
158
Problem DescriptionWe have met so many problems on the tree, so today we will have a query problem on a set of trees.There are N nodes, each node will...
分类:
其他好文 时间:
2015-07-20 10:30:30
阅读次数:
92
题目链接:https://leetcode.com/problems/divide-two-integers/
Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
int divide(in...
分类:
其他好文 时间:
2015-07-20 09:19:59
阅读次数:
99
ZOJ 3230 Solving the Problems(数学 优先队列啊)...
分类:
其他好文 时间:
2015-07-19 21:43:44
阅读次数:
132
Java中异常的抽象类是Throwable,在此基础上,派生出两大类:Error和Exception。Error是程序中的严重错误,不应该用try…catch包括。Javadoc的说明如下:
An Error is a subclass of Throwable that indicates serious problems that a reasonable application shoul...
分类:
编程语言 时间:
2015-07-19 18:07:20
阅读次数:
124
题目链接:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length....
分类:
其他好文 时间:
2015-07-19 18:05:55
阅读次数:
84
题目链接:https://leetcode.com/problems/reverse-nodes-in-k-group/
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not...
分类:
其他好文 时间:
2015-07-19 18:04:26
阅读次数:
128