码迷,mamicode.com
首页 >  
搜索关键字:complexity    ( 1097个结果
Leetcode--easy系列8
#172  Factorial Trailing Zeroes   Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 一个很直观的想法是用递归求出n!然后/10 计算末...
分类:其他好文   时间:2015-06-25 17:30:33    阅读次数:115
CUDA系列学习(五)GPU基础算法: Reduce, Scan, Histogram
喵~不知不觉到了CUDA系列学习第五讲,前几讲中我们主要介绍了基础GPU中的软硬件结构,内存管理,task类型等;这一讲中我们将介绍3个基础的GPU算法:reduce,scan,histogram,它们在并行算法中非常常用,我们在本文中分别就其功能用处,串行与并行实现进行阐述。1. Task complexitytask complexity包括step complexity(可以并行成几个操作)...
分类:编程语言   时间:2015-06-24 10:59:11    阅读次数:234
Leetcode 04 Median of Two Sorted Arrays
There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should...
分类:其他好文   时间:2015-06-24 00:43:01    阅读次数:99
Factorial Trailing Zeroes
Description:Given an integern, return the number of trailing zeroes (尾数0) inn!.Note:Your solution should be in logarithmic time complexity.分析:一个数 n 的阶...
分类:其他好文   时间:2015-06-23 11:49:43    阅读次数:99
leetcode 34 -- Search for a Range
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 order of O(log n)....
分类:其他好文   时间:2015-06-23 10:16:46    阅读次数:109
redis文档翻译_key设置过期时间
Available since 1.0.0.    使用开始版本1.01 Time complexity: O(1)  时间复杂度O(1) 出处:http://blog.csdn.net/column/details/redisbanli.html Set a timeout on key. After the timeout has expired, the...
分类:其他好文   时间:2015-06-22 17:57:53    阅读次数:125
Find Minimum in Rotated Sorted Array II
Description:Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Su...
分类:其他好文   时间:2015-06-21 18:24:46    阅读次数:130
redis翻译_redis lua脚本
Available since 2.6.0.  加入版本2.6 Time complexity: Depends on the script that is executed. 时间复杂度: 取决于脚本的执行  出处:http://blog.csdn.net/column/details/redisbanli.html Introduction to EVAL  ...
分类:其他好文   时间:2015-06-21 13:12:26    阅读次数:357
leetcode - Merge k Sorted Lists
题目: Merge k Sorted Lists Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.  分析: 用multiset作为小根堆,multiset的begin是value最小的结点。 注意:...
分类:其他好文   时间:2015-06-21 10:42:17    阅读次数:127
[LeetCode] Single Number II
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...
分类:其他好文   时间:2015-06-19 15:22:12    阅读次数:116
1097条   上一页 1 ... 50 51 52 53 54 ... 110 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!