摘要:
题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.解法一: bit manipulate1 public class Solution {2 public... 阅读全文
摘要:
题目: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... 阅读全文
摘要:
题目: 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 阅读全文
摘要:
题目:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), retu... 阅读全文