摘要: Problem Definition:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 0000001010010100000111... 阅读全文
posted @ 2015-07-18 14:58 曾可爱 阅读(124) 评论(0) 推荐(0)
摘要: Problem Definition:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For ex... 阅读全文
posted @ 2015-07-18 14:13 曾可爱 阅读(151) 评论(0) 推荐(0)
摘要: Problem Definition:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed,the only cons... 阅读全文
posted @ 2015-07-18 12:01 曾可爱 阅读(154) 评论(0) 推荐(0)