概念:LinearLayout是一种线性布局,他会将控件在水平和垂直方向做线性排列官方文档:http://developer.android.com/guide/topics/ui/layout/linear.html http://developer.android.com/reference/a... ...
分类:
其他好文 时间:
2016-07-30 13:32:57
阅读次数:
166
338. Counting Bits 338. Counting Bits Total Accepted: 35688 Total Submissions: 61823 Difficulty: Medium Given a non negative integer number num. For e ...
分类:
其他好文 时间:
2016-07-30 10:19:29
阅读次数:
106
最开始一下子想不出来好的方法用的是O(n*sizeof(integer))的方法,辗转相除,每次除以2以后的余数就是bitwise上的数字。 然后我自己想了下O(n)的方法 总体的想法是一组一组,每组的size是小于该数最大的2^n的值。 即res[4]=res[0]+1, res[5] = res ...
分类:
其他好文 时间:
2016-07-30 06:54:59
阅读次数:
143
题目描述:给定一个数字n,统计0~n之间的数字二进制的1的个数,并用数组输出例子:For num = 5 you should return [0,1,1,2,1,2].要求:
算法复杂复o(n)
空间复杂度o(n)
原文描述:Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num c...
分类:
编程语言 时间:
2016-07-30 01:49:37
阅读次数:
216
本文来源于我个人的ARC学习笔记,旨在通过简明扼要的方式总结出iOS开发中ARC(Automatic Reference Counting,自动引用计数)内存管理技术的要点,所以不会涉及全部细节。这篇文章不是一篇标准的ARC使用教程,并假定读者已经对ARC有了一定了解和使用经验。详细的关于ARC的信 ...
分类:
移动开发 时间:
2016-07-29 17:13:10
阅读次数:
254
题目链接https://leetcode.com/problems/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 representation a...
分类:
编程语言 时间:
2016-07-29 15:36:46
阅读次数:
210
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 28966 Accepted: 14505 Description Due to recent rains, water has pooled in va ...
分类:
其他好文 时间:
2016-07-25 16:07:22
阅读次数:
174
11.表达式 11.1 主值表达式 语法:PrimaryExpression : this;执行为当前执行环境的ThisBinding Identifier ;执行遵循 标识符解析 的标识符查找。标识符执行的结果总是一个 Reference 类型的值。 Literal; ArrayLiteral;一 ...
分类:
其他好文 时间:
2016-07-25 01:36:19
阅读次数:
191
iOS经典面试题总结--内存管理 内存管理 1.什么是ARC? ARC是automatic reference counting自动引用计数,在程序编译时自动加入retain/release。在对象被创建时retain count+1,在对象被release时count-1,当count=0时,销毁 ...
分类:
移动开发 时间:
2016-07-24 20:53:41
阅读次数:
262
完成任务时遇到的相关知识点: http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.multivariate_normal.html 服从多元正态分布的随机样本 参数: 均值mean 方差cov http://docs.sc ...
分类:
其他好文 时间:
2016-07-24 16:13:00
阅读次数:
168