LeetCode
三儿_
专业没兴趣、兴趣很专业
展开
-
LeetCode198题:House Robber【java】
先看下题目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adja原创 2015-04-15 16:51:10 · 814 阅读 · 0 评论 -
LeetCode191:Number of 1 Bits【Java】
原题目: Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 0000000原创 2015-04-17 10:05:33 · 619 阅读 · 0 评论