
算法
lrsage
这个作者很懒,什么都没留下…
展开
-
LeetCode: 338. Counting Bits
题目描述: 338. Counting Bits Medium Given a non negative integer numbernum. For every numbersiin the range0 ≤ i ≤ numcalculate the number of 1's in their binary representation and return them as ...原创 2019-07-18 22:57:53 · 156 阅读 · 0 评论 -
LeetCode: 136. Single Number
题目描述: 136.Single Number Easy Given anon-emptyarray of integers, every element appearstwiceexcept for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. C...原创 2019-07-19 21:59:47 · 201 阅读 · 0 评论 -
LeetCode:406. Queue Reconstruction by Height
题目描述: 406.Queue Reconstruction by Height Medium Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers(h, k), wherehis the height of the pe...原创 2019-07-28 12:34:13 · 298 阅读 · 0 评论