码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
24_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...
分类:其他好文   时间:2015-02-01 12:12:19    阅读次数:156
Merge Two Sorted Lists
https://oj.leetcode.com/problems/merge-two-sorted-lists/Merge two sorted linked lists and return it as a new list. The new list should be made by spli...
分类:其他好文   时间:2015-02-01 00:35:26    阅读次数:147
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 the original relative order of the nodes in each of...
分类:其他好文   时间:2015-01-31 17:59:32    阅读次数:180
(最小生成树) poj 2522
Slim SpanTime Limit:5000MSMemory Limit:65536KTotal Submissions:6674Accepted:3539DescriptionGiven an undirected weighted graphG, you should find one of...
分类:其他好文   时间:2015-01-31 17:47:38    阅读次数:300
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:系统相关   时间:2015-01-31 17:43:36    阅读次数:158
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 #include using namespace std; //Definition fo...
分类:其他好文   时间:2015-01-31 16:22:38    阅读次数:152
Top 100 words for advanced learners.
100 words to Impress an Examiner!Here are 100 advanced English words which should you be able to use them in a sentence will impress even educated nat...
分类:其他好文   时间:2015-01-31 16:12:57    阅读次数:240
LeetCode --- 21. Merge Two Sorted Lists
题目链接: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. 这道题的要求是将两个已经排好序的链表合并成1个有序链表。...
分类:其他好文   时间:2015-01-31 14:44:44    阅读次数:116
[LeetCode]Two Sum
Q: 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 numbers such that they add up to the targe...
分类:其他好文   时间:2015-01-31 14:40:36    阅读次数:225
[LeetCode] Single Number II 单独的数字之二
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2015-01-31 14:21:18    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!