摘要:
Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). Example 1: Input: 0000000 阅读全文
posted @ 2019-11-14 11:46
xuan_abc
阅读(118)
评论(0)
推荐(0)
摘要:
Given an integer, write a function to determine if it is a power of two. Example 1: Input: 1 Output: true Explanation: 20 = 1 Example 2: Input: 16 Out 阅读全文
posted @ 2019-11-14 11:04
xuan_abc
阅读(81)
评论(0)
推荐(0)

浙公网安备 33010602011771号