码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
Leetcode 21 Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.题目解析:炒鸡简单...
分类:其他好文   时间:2015-02-15 00:56:05    阅读次数:212
LeetCode Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2015-02-14 21:23:48    阅读次数:246
leetcode_86_Partition List
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Partition List  Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve th...
分类:其他好文   时间:2015-02-14 17:35:09    阅读次数:195
hdu5171---GTY's birthday gift
Problem Description FFZ’s birthday is coming. GTY wants to give a gift to ZZF. He asked his gay friends what he should give to ZZF. One of them said, ‘Nothing is more interesting than a number multise...
分类:其他好文   时间:2015-02-14 12:20:03    阅读次数:160
values of type NSInteger should not be used as format arguments; 关于Xcode中烦人的32位与64位警告处理方法.
http://stackoverflow.com/questions/16075559/why-does-an-nsinteger-variable-have-to-be-casted-to-long-when-used-as-a-format-a老老实实按Xcode的提示来处理添加ld%, 添加....
分类:其他好文   时间:2015-02-13 18:21:55    阅读次数:542
leetcode_24_Swap Nodes in Pairs
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3...
分类:其他好文   时间:2015-02-13 11:44:24    阅读次数:127
hdu 1016 Prime Ring Problem DFS解法 纪念我在杭电的第一百题
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the number of first circle should always be 1. Input n (0 < n < 2...
分类:其他好文   时间:2015-02-12 22:56:33    阅读次数:437
hdu 1072 Nightmare BFS,第一次刷BFS的题,感好牛逼的。。。
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb explodes. The initial exploding time of the bomb is set to 6 minutes. To preve...
分类:Web程序   时间:2015-02-12 22:51:36    阅读次数:188
[LeetCode]Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 这道题是让合并两个有序链表。增设一个头结点。下面贴上代码:#include using name...
分类:其他好文   时间:2015-02-12 21:27:59    阅读次数:262
leetcode_01_Two sum
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Two sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbe...
分类:其他好文   时间:2015-02-12 18:32:47    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!