leetcode
zhihx
渴望成为出色的硬件工程师。
展开
-
448. Find All Numbers Disappeared in an Array 找出数组中消失的数
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.给出一个整数数组,满足1 ≤ a[i] ≤ n (n是数组之长),有些元素出现两次,有些元素出现一次。Find all the elements of原创 2016-12-23 13:53:24 · 327 阅读 · 0 评论 -
461. Hamming Distance 汉明距离
461. Hamming Distance 汉明距离The Hamming distance between two integers is the number of positions at which the corresponding bits are different.汉明距离是两个整数之间取值不同的比特位的个数。Given two integers x and y原创 2016-12-22 13:33:20 · 330 阅读 · 0 评论