摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2019-01-20 15:31 乐乐章 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: [5,7] Output: 阅读全文
posted @ 2019-01-20 14:29 乐乐章 阅读(129) 评论(0) 推荐(0) 编辑