Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?假设旋转的时候...
分类:
其他好文 时间:
2015-01-09 20:53:57
阅读次数:
215
N-Queens IIFollow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 1 class Solutio...
分类:
其他好文 时间:
2015-01-09 20:47:49
阅读次数:
145
iOS 数据存储指导方针 iCloud包括了备份,会通过Wi-Fi每天自动备份用户iOS设备。app的home目录下的所有东西都会被备份,除了应用Bundle本身、缓存目录和temp目录。已购买的音乐、应用、书籍、Camera Roll、设备设...
分类:
其他好文 时间:
2015-01-09 17:40:44
阅读次数:
170
1.str.split(/\s+/)这句是表示以和/\s+/匹配的字符串作为分界,分割字符串str比如一个空格或者多个或者空格以及回车等 其中+表示一个或者多个var a = "b-c-d";var d = a.split("-");alert(d[1]); //c2.var up_class;i....
分类:
Web程序 时间:
2015-01-09 17:09:41
阅读次数:
187
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2015-01-09 15:27:07
阅读次数:
142
1. iw dev wlan0 interface add mon_wlan0 type monitor 2. ifconfig mon_wlan0 up 3. iwconfig mon_wlan0 channel ‘X‘ 4. wireshark? base on mon_wlan0 ? Ps: check channel support or not with command "i...
分类:
其他好文 时间:
2015-01-09 12:50:43
阅读次数:
227
SublimeText多列选择(Column Selection)默认的快捷键是Ctrl+shift+up&down,但是与Yosemite的“MissionControl”、“应用程序窗口”的两个快捷键冲突了,最简单的办法就是在“偏好设置”里面关掉这两个快捷键。
分类:
其他好文 时间:
2015-01-09 10:32:04
阅读次数:
244
使用git提交比较大的文件的时候可能会出现这个错误 error: RPC failed; result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to...
分类:
其他好文 时间:
2015-01-08 20:18:38
阅读次数:
199
一开始出现这个错误的时候还感觉很奇怪,我明明在在本地中相应的库文件夹命令中输入: vim ./git/config 将文件中的 [remote “origin"]部分去掉!
分类:
Web程序 时间:
2015-01-08 17:31:43
阅读次数:
180
搭建Linux-VSFTPLinux搭建vsftp。所谓vsftp,就是verysecureFTPdaemon。在Linux上搭建FTP,可以选择proftpd、pureftpd、和vsftpd等软件。在vsftp创建虚拟的ftp用户。所谓虚拟用户,就是不在系统中存在,而且在不同的虚拟用户有不同的权限,例如UP用户只能上传,不能修改下载;D..
分类:
系统相关 时间:
2015-01-08 15:30:45
阅读次数:
196