摘要: 题目 Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages, such as Java, there is no unsigned integer type. In this case, 阅读全文
posted @ 2022-03-10 23:48 frankming 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题目 Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight). Note: Note that in so 阅读全文
posted @ 2022-03-10 16:23 frankming 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an integer n, return true if it is a power of two. Otherwise, return false. An integer n is a power of two, if there exists an integer x such 阅读全文
posted @ 2022-03-10 15:45 frankming 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More fo 阅读全文
posted @ 2022-03-10 00:20 frankming 阅读(23) 评论(0) 推荐(0) 编辑