摘要:
Problem Definition: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. Y... 阅读全文
posted @ 2015-07-19 22:21
曾可爱
阅读(154)
评论(0)
推荐(0)
摘要:
Problem Definition: Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C ->... 阅读全文
posted @ 2015-07-19 19:56
曾可爱
阅读(113)
评论(0)
推荐(0)
摘要:
Problem Definition: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity.Sol... 阅读全文
posted @ 2015-07-19 16:41
曾可爱
阅读(87)
评论(0)
推荐(0)
摘要:
Problem Definition: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated t... 阅读全文
posted @ 2015-07-19 15:57
曾可爱
阅读(113)
评论(0)
推荐(0)

浙公网安备 33010602011771号