摘要: 231. Power ofTwo Given an integer, write a function to determine if it is a power of two. Hide Similar Problems (E) Number of 1 Bits (E) Power of Thre 阅读全文
posted @ 2016-06-05 14:21 新一代的天皇巨星 阅读(215) 评论(0) 推荐(0)
摘要: 280. Wiggle Sort Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3 阅读全文
posted @ 2016-06-05 07:37 新一代的天皇巨星 阅读(1664) 评论(0) 推荐(0)
摘要: 215. Kth Largest Element in an Array Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, n 阅读全文
posted @ 2016-06-05 06:12 新一代的天皇巨星 阅读(519) 评论(0) 推荐(0)