码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
SDNU 1143.Ivan comes again!【山东省第一届ACM】【7月21】
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
SDNU 1142.Hello World!【山东省第一届ACM】【7月21】
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
树状数组求第K小值 (spoj227 Ordering the Soldiers && hdu2852 KiKi's K-Number)
题目: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
leetcode | Maximum Gap
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
hdu4010 Query On The Trees
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
#29 Divide Two Integers
题目链接: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(数学 优先队列啊)
ZOJ 3230 Solving the Problems(数学 优先队列啊)...
分类:其他好文   时间:2015-07-19 21:43:44    阅读次数:132
Java Exception和Error的区别
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
#26 Remove Duplicates from Sorted Array
题目链接: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
#25 Reverse Nodes in k-Group
题目链接: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!