码迷,mamicode.com
首页 >  
搜索关键字:complexity    ( 1097个结果
23. Merge k Sorted Lists
题目:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.链接:http://leetcode.com/problems/merge-k-sorted-list...
分类:其他好文   时间:2015-04-17 15:34:07    阅读次数:122
【leetcode】Factorial Trailing Zeroes(easy)
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.思路:编程之美里有,就是找因子5的个数。int trail...
分类:其他好文   时间:2015-04-17 15:27:58    阅读次数:106
4. Median of Two 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 ...
分类:其他好文   时间:2015-04-15 21:16:28    阅读次数:105
LeetCode: MergekSortedLists
Title:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.排好序的,然后merge,很容易让人联想到归并排序。可以将k个序列按照二分进行分割,然后当长度为...
分类:其他好文   时间:2015-04-15 09:26:46    阅读次数:124
Dancing Link --- 模板题 HUST 1017 - Exact cover
1017 - Exact coverProblem's Link: http://acm.hust.edu.cn/problem/show/1017Mean:略analyse:ATime complexity: O(n)Source code:#include #include #include #...
分类:其他好文   时间:2015-04-15 00:43:14    阅读次数:194
Leetcode 24 Swap Nodes in Pairs
/** * ID: 24 * Name: Swap Nodes in Pairs * Data Structure: Linked List * Time Complexity: * Space Complexity: * Tag: LinkList * Difficult: Medium ...
分类:其他好文   时间:2015-04-14 07:10:45    阅读次数:127
Leetcode 92 Reverse Linked List ii
/** * ID: 92 * Name: Reverse Linked List * Data Structure: Linked List * Time Complexity: * Space Complexity: * Tag: LinkList * Difficult: Medium ...
分类:其他好文   时间:2015-04-14 07:04:18    阅读次数:192
Minimum Window Substring -- leetcode
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BAN...
分类:Windows程序   时间:2015-04-13 09:42:33    阅读次数:201
172. Factorial Trailing Zeroes
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.cracking interview原题,2*5可以构成一...
分类:其他好文   时间:2015-04-13 09:25:10    阅读次数:111
Leetcode 2 Add Two Numbers
/** * ID: 2 * Name: Add Two Numbers * Data Structure: Linked List * Time Complexity: * Space Complexity: * Tag: LinkList * Difficult: Medium * Pro...
分类:其他好文   时间:2015-04-13 06:54:00    阅读次数:169
1097条   上一页 1 ... 60 61 62 63 64 ... 110 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!