题目链接https://leetcode.com/problems/remove-duplicates-from-sorted-array/思路就是维护两个pointer,一个,i, 用于遍历整个数组,另一个,len, 用于保存当前的无重复元素的数组的最后一个positionif A[i] == A...
分类:
其他好文 时间:
2015-04-16 06:42:09
阅读次数:
118
题目链接https://leetcode.com/problems/remove-element/这道题比较简单,为了维护这个leetcode系列的完整性,我依然把它加在这里,code如下class Solution {public: int removeElement(int A[], in...
分类:
其他好文 时间:
2015-04-16 06:42:02
阅读次数:
109
题目链接https://leetcode.com/problems/rotate-array/这道题主要是想明白rotate是怎样完成的,举个例子{1,2,3,4,5,6,7}, k=3我们发现完成rotate 3需要进行一下三步1)reverse array {1,2,3,4,5,6,7} => ...
分类:
其他好文 时间:
2015-04-16 06:40:23
阅读次数:
125
The relevant option is no longer available in the settings menu in Ubuntu 13.10; this has been reported as a bug (https://bugs.launchpad.net/ubuntu/+s...
分类:
系统相关 时间:
2015-04-16 01:05:27
阅读次数:
244
Firefox下载页面:https://www.mozilla.org/en-US/firefox/all/选择列表中的“Chinese (Simplified) 中文 (简体)”下载。FTP服务器:Firefox 37.0.1 位置:ftp://ftp.mozilla.org/pub/mozill...
分类:
其他好文 时间:
2015-04-15 23:04:34
阅读次数:
463
停止老版本Mongodb>use admin >db.shutdownServer(); 下载解压新版本Mongodbwget https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.0.2.tgzgzip -d mongodb-linux-i6....
分类:
数据库 时间:
2015-04-15 23:02:56
阅读次数:
174
fork了别人的项目,然后源项目更新了,我想同步更新到我fork了的项目,怎么办呢?方法一:1、远程新建一个库upstream(名字任意):git remote add upstream https://github.com/username/reponame.git链接地址为你fork项目的源项目...
分类:
其他好文 时间:
2015-04-15 22:55:05
阅读次数:
119
自定义UITabbarController控制器这是定制UITabbarController的基本原理,没有进行功能性封装.效果:源码地址:https://github.com/YouXianMing/Custom-TabbarController-Verson-One/tree/master源码:...
分类:
其他好文 时间:
2015-04-15 22:44:17
阅读次数:
149
1、第三方开源库地址https://github.com/guange2015/ios-amr2、参考博客地址http://blog.csdn.net/windsoul85/article/details/8035088http://macleo.iteye.com/blog/1708747
分类:
移动开发 时间:
2015-04-15 19:03:01
阅读次数:
188
官方下载地址:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-11.0.0-2305329.exe VMware Workstation 11.0.0 注册码/key :1F04Z-6D111-7Z029...
分类:
系统相关 时间:
2015-04-15 18:41:46
阅读次数:
141