码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
Median of Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2015-01-11 15:59:32    阅读次数:181
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-01-10 13:57:24    阅读次数:119
leetcode 【 Partition List 】python 实现
题目:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the or...
分类:编程语言   时间:2015-01-10 12:25:37    阅读次数:204
leetcode 【 Swap Nodes in Pairs 】python 实现
题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your al...
分类:编程语言   时间:2015-01-10 00:57:36    阅读次数:327
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:其他好文   时间:2015-01-09 15:27:07    阅读次数:142
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. Solutions: /** * Definition for singly-linked list. ...
分类:其他好文   时间:2015-01-09 09:16:56    阅读次数:160
[VirtualBox] Install Ubuntu 14.10 error 5 Input/output error
After you download the VirtualBox install package and install it (just defualt setting).Then you should download theubuntu.iso file from the website.T...
分类:系统相关   时间:2015-01-09 07:01:48    阅读次数:298
[LeetCode] Factorial Trailing Zeroes 阶乘末尾0
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Credits:Special thanks to@tsf...
分类:其他好文   时间:2015-01-09 00:00:03    阅读次数:531
【leetcode】Spiral Matrix II
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:其他好文   时间:2015-01-08 21:32:10    阅读次数:209
LeetCode--Regular Expression Matching
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input st...
分类:其他好文   时间:2015-01-08 20:17:55    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!