Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a...
分类:
其他好文 时间:
2015-10-23 10:12:56
阅读次数:
137
Download scriptbin_kernel.tar.gz from Mega, unpack.Copy uImage_OPI-2 or uImage_OPI-PLUS (depending on your board type) to uImage on SD Card FAT partit...
分类:
其他好文 时间:
2015-10-23 10:09:59
阅读次数:
172
第一章:1-1.就编程而言,可移植性表示什么?答:表示在一个系统上编写的代码经过很少更改甚至无需更改就可以在其他系统上运行。1-2.解释源代码文件,目标代码文件,可执行文件之间的区别。答:源代码文件包含了程序员使用编程语言编写的代码,目标代码文件包含了经过编译后的机器语言代码,不一定是完整的,可执行...
分类:
其他好文 时间:
2015-10-23 01:37:26
阅读次数:
256
题目链接: Hdu 1024 Max Sum Plus Plus题目描述: 给出n个数,问m段连续子序列的和相加最大是多少?解题思路: dp[i][j]表示把前i个元素(包括第i个),分成j段的最大和。状态转移方程就是dp[i][j] = max (dp[i-1][j] + arr[j], m...
分类:
其他好文 时间:
2015-10-22 21:20:56
阅读次数:
168
单向链表:见 书 C primer plus (488 程序 17.2) 1 #include 2 #include /* has the malloc prototype */ 3 #include /* has the strcpy prototype ...
分类:
其他好文 时间:
2015-10-22 21:13:46
阅读次数:
245
将数据导入本地mongo中mongoimport --db test --collection restaurants --drop --file primer-dataset.json 如果本地mongo数据库中已经有了test 数据库,上面的命令会先删除之前的数据然后再导入新的数据在Linux/...
分类:
数据库 时间:
2015-10-22 19:00:52
阅读次数:
212
分为兼容模式和高分辨率模式。兼容模式当你的 app 没有提供 3x 的 LaunchImage 时,系统默认进入兼容模式,大屏幕一切按照 320 宽度渲染,屏幕宽度返回 320;然后等比例拉伸到大屏。这种情况下对界面不会产生任何影响,等于把小屏完全拉伸。但是建议不要长期处于这种模式下,否则在大屏上会...
分类:
其他好文 时间:
2015-10-22 10:34:49
阅读次数:
219
天猫的web app的首页就是采用这种方式去做的,以320宽度为基准,进行缩放,最大缩放为320*1.3 = 416,基本缩放到426都就可以兼容iphone6 plus的屏幕了,这个方法简单粗暴,又高效。说实话我觉得他和用接下去我们要讲的rem都非常高效,不过有部分同学使用过程中反应缩放过程中有些...
分类:
其他好文 时间:
2015-10-22 10:22:25
阅读次数:
202
Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or minus...
分类:
其他好文 时间:
2015-10-21 23:57:07
阅读次数:
361