摘要:
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 the 阅读全文
posted @ 2018-09-28 11:57
bernieloveslife
阅读(82)
评论(0)
推荐(0)
摘要:
At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bil 阅读全文
posted @ 2018-09-28 11:57
bernieloveslife
阅读(117)
评论(0)
推荐(0)
摘要:
Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3 Output: 0 Explanation: 3! = 6, no trailing zero. Example 2: Input: 阅读全文
posted @ 2018-09-28 11:55
bernieloveslife
阅读(96)
评论(0)
推荐(0)
摘要:
Reverse bits of a given 32 bits unsigned integer. Example: Input: 43261596 Output: 964176192 Explanation: 43261596 represented in binary as 0000001010 阅读全文
posted @ 2018-09-28 11:54
bernieloveslife
阅读(98)
评论(0)
推荐(0)
摘要:
Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non negative integer. Since the return type is an in 阅读全文
posted @ 2018-09-28 11:53
bernieloveslife
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号