摘要:
题目: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 链接: http://leetcode. 阅读全文
摘要:
题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example 阅读全文
摘要:
题目: Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 链接: http://leetcode.com/problems/excel-s 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repea 阅读全文
摘要:
题目: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may a 阅读全文
摘要:
题目: 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 阅读全文