码迷,mamicode.com
首页 >  
搜索关键字:complexity    ( 1097个结果
转:算法的空间复杂度
转自:算法的空间复杂度类似于时间复杂度的讨论,一个算法的空间复杂度(Space Complexity)S(n)定义为该算法所耗费的存储空间,它也是问题规模n的函数。渐近空间复杂度也常常简称为空间复杂度。空间复杂度(Space Complexity)是对一个算法在运行过程中临时占用存储空间大小的量度。...
分类:编程语言   时间:2014-10-12 03:12:07    阅读次数:264
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 be....
分类:其他好文   时间:2014-10-10 23:59:54    阅读次数:226
Median of Two Sorted Arrays
[leetcode]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 O(log (m+n))....
分类:其他好文   时间:2014-10-08 14:00:15    阅读次数:147
leetcode--Median of Two Sorted Arrays
Problem: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 sh...
分类:其他好文   时间:2014-10-08 00:27:44    阅读次数:321
Leetcode:Sort List
题目:Sort ListSort a linked list in O(n log n) time using constant space complexity看题目有两个要求:1)时间复杂度为O(nlogn);2)空间复杂度为常数,即不能增设额外的空间。满足这样要求的排序算法,我们首先想到快排,...
分类:其他好文   时间:2014-10-07 19:28:53    阅读次数:245
Leetcode: Minimum Window Substring
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 = "ADOBECODE...
分类:Windows程序   时间:2014-10-06 02:49:19    阅读次数:344
Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-10-05 17:36:28    阅读次数:213
Minimum window substring
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="ADOBECODEBA...
分类:Windows程序   时间:2014-10-04 19:19:27    阅读次数:191
042_翻转单词顺序
/* * Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-10-04 17:45:36    阅读次数:163
leetcode Single Number II
/* * Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-10-04 14:32:16    阅读次数:211
1097条   上一页 1 ... 92 93 94 95 96 ... 110 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!