摘要: 题目详情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 bi... 阅读全文
posted @ 2018-09-12 13:03 qq874455953 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 博客转载地址:https://blog.csdn.net/flyawayl/article/details/53538369思路:利用快速排序的思想,把数组递归划分成两部分。设划分为x,数组左边是小于等于x,右边大于x。 关键在于寻找一个最优的划分,经过 B... 阅读全文
posted @ 2018-09-12 00:13 qq874455953 阅读(258) 评论(0) 推荐(0) 编辑