摘要: 题目: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation a 阅读全文
posted @ 2016-04-20 17:11 HelloWorld_5 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, retur 阅读全文
posted @ 2016-04-20 17:08 HelloWorld_5 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum 阅读全文
posted @ 2016-04-20 17:04 HelloWorld_5 阅读(254) 评论(0) 推荐(0) 编辑