摘要: 题目内容 Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). Example: 分析过程 题目归类: 阅读全文
posted @ 2020-02-12 13:12 clnsx 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Reverse bits of a given 32 bits unsigned integer. Example: 分析过程 题目归类: 2进制 题目分析: 对于2进制需要了解补码反码左移右移逻辑右移和算术右移等操作。 todo 各种码分析 边界分析: 空值分析 循环边界分析 需要了解到 阅读全文
posted @ 2020-02-12 12:57 clnsx 阅读(94) 评论(0) 推荐(0) 编辑