码迷,mamicode.com
首页 >  
搜索关键字:complexity    ( 1097个结果
leetcode[172]Factorial Trailing Zeroes
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.给定一个整数n,返回n!(n的阶乘)数字中的后缀0的个数。...
分类:其他好文   时间:2015-02-09 00:37:06    阅读次数:256
leetcode[154]Find Minimum in Rotated Sorted Array II
Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Suppose a sort...
分类:其他好文   时间:2015-02-09 00:37:00    阅读次数:166
(34)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...
分类:其他好文   时间:2015-02-08 21:51:57    阅读次数:142
leetcode_81_Search in Rotated Sorted Array II
欢迎转载,如有错误或疑问请留言纠正,谢谢 Search in Rotated Sorted Array II  Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and w...
分类:其他好文   时间:2015-02-08 18:16:36    阅读次数:199
leetcode_34_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). I...
分类:其他好文   时间:2015-02-08 12:57:17    阅读次数:171
[LeetCode]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....
分类:其他好文   时间:2015-02-07 21:45:08    阅读次数:273
LeetCode 023 Merge k Sorted Lists
题目要求:Merge k Sorted ListsMergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.分析:参考网址:http://blog.csdn.net/...
分类:其他好文   时间:2015-02-07 17:19:56    阅读次数:194
[LeetCode] Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.方法一:实现merger2Lists,然后两个两个List Merge,直到最后,不过超时了class So...
分类:其他好文   时间:2015-02-07 15:44:27    阅读次数:154
leetcode 34. 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...
分类:其他好文   时间:2015-02-05 23:20:04    阅读次数:203
[LeetCode]Search for a Range
Q: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). If the target is not foun...
分类:其他好文   时间:2015-02-05 13:38:52    阅读次数:134
1097条   上一页 1 ... 70 71 72 73 74 ... 110 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!