上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 33 下一页
摘要: 题目: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 链接: http://leetcode. 阅读全文
posted @ 2015-05-10 03:47 YRB 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example 阅读全文
posted @ 2015-05-10 03:36 YRB 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目: Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. 阅读全文
posted @ 2015-05-10 03:28 YRB 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that 阅读全文
posted @ 2015-05-10 03:27 YRB 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 链接: http://leetcode.com/problems/excel-s 阅读全文
posted @ 2015-05-10 03:25 YRB 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The func 阅读全文
posted @ 2015-05-10 03:23 YRB 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repea 阅读全文
posted @ 2015-05-10 03:19 YRB 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 题目: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may a 阅读全文
posted @ 2015-05-10 03:16 YRB 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/space. Ret 阅读全文
posted @ 2015-05-10 03:14 YRB 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges. For example, given [0, 1, 3, 50, 阅读全文
posted @ 2015-05-09 12:41 YRB 阅读(735) 评论(2) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 33 下一页