上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页
摘要: Description:Given an integern, return the number of trailing zeroes (尾数0) inn!.Note:Your solution should be in logarithmic time complexity.分析:一个数 n 的阶... 阅读全文
posted @ 2015-06-23 10:01 Rosanne 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description:Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For ex... 阅读全文
posted @ 2015-06-23 09:49 Rosanne 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Description:Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume ... 阅读全文
posted @ 2015-06-22 10:53 Rosanne 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Description:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 阅读全文
posted @ 2015-06-22 10:23 Rosanne 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Description:A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and retur... 阅读全文
posted @ 2015-06-22 10:11 Rosanne 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Description:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A... 阅读全文
posted @ 2015-06-22 09:48 Rosanne 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Description:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop(... 阅读全文
posted @ 2015-06-22 09:42 Rosanne 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description:Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Su... 阅读全文
posted @ 2015-06-21 17:57 Rosanne 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum e... 阅读全文
posted @ 2015-06-21 17:53 Rosanne 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Description:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Code:1 void revers... 阅读全文
posted @ 2015-06-21 17:38 Rosanne 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页