![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Bit Manipulation
candy_crush
胡编乱写
展开
-
Majority Element
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 array is non-empty and the majority element原创 2016-09-02 21:54:41 · 170 阅读 · 0 评论 -
Missing Number
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, 3] return 2.数组包含n个不同的数,这些数来自0, 1, 2, ..原创 2016-09-02 23:15:23 · 247 阅读 · 0 评论