摘要: Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 阅读全文
posted @ 2020-09-08 21:39 0-1-world 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Counting Bits 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 repres 阅读全文
posted @ 2020-09-08 21:37 0-1-world 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Number of 1 Bits 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-09-08 21:34 0-1-world 阅读(101) 评论(0) 推荐(0) 编辑