摘要:
题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.解法一: bit manipulate1 public class Solution {2 public... 阅读全文
posted @ 2015-07-29 23:44
Hygeia
阅读(202)
评论(0)
推荐(0)
摘要:
题目:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit... 阅读全文
posted @ 2015-07-29 23:28
Hygeia
阅读(107)
评论(0)
推荐(0)
摘要:
题目: Given an integer, write a function to determine if it is a power of two. bn is the product of multiplying n bases: In that case, bn is called the 阅读全文
posted @ 2015-07-29 23:17
Hygeia
阅读(162)
评论(3)
推荐(0)
摘要:
题目:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), retu... 阅读全文
posted @ 2015-07-29 22:51
Hygeia
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号