题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:1) 把matri...
分类:
其他好文 时间:
2015-12-25 17:05:52
阅读次数:
122
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space? A straight forward sol...
分类:
其他好文 时间:
2015-12-25 15:10:58
阅读次数:
185
//BigDecimal四舍五入double f1 = new BigDecimal(1).setScale(2,RoundingMode.HALF_UP).doubleValue();//转化成字符串 防止出现0.36 出一堆小数的问题。0.36转BigDecimal时按浮点数,会出现小数BigD...
分类:
其他好文 时间:
2015-12-25 14:57:23
阅读次数:
178
Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm?Hint:Expected runtime complexity is...
分类:
其他好文 时间:
2015-12-25 06:24:14
阅读次数:
193
ubuntu14的unity坏了,于是就找了个镜像升级到15.但是升级完android开发环境出了点问题。。1:Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar这个是ubuntu15加入了jayatanaag...
分类:
系统相关 时间:
2015-12-24 09:17:00
阅读次数:
196
一、yum发展与作用 在linux系统维护中管理员经常遇到软件包的依赖问题,有时无法解决,比如你在安装库文件时常出现报错问题,说依赖其它软件包。由于这个问题一直困绕linux的广大爱好者,开源社区的软件爱好者开始开发一些工具来解决这个问题;比如Yellow Dog的YUM(Yellow dog Up...
分类:
其他好文 时间:
2015-12-24 00:19:27
阅读次数:
228
part组员工作工作耗时/h明日计划工作耗时/h UI冯晓云基本完成单词本显示页面的设计和实现4完善页面切换4foxit PDF Reader朱玉影login周以舟async林建平foxit PDF Reader张葳UI 3.0:不知道怎么才能找到wrappanel这个控件~所以目前单词本各个单元目...
分类:
其他好文 时间:
2015-12-24 00:17:13
阅读次数:
161
package cn.edu.xidian.sselab.array;/*** * @author zhiyong wang* title: Unique Paths II* content:* Follow up for "Unique Paths":* Now consider if some ...
分类:
其他好文 时间:
2015-12-23 01:53:30
阅读次数:
139
gdb有thread相关命令,如info thread(简写成info th)显示线程消息,b xx thread yy可以针对某个thread设置断点,thread xx(简写成thr xx)切换到某个thread。再配合frame(简写f)相关的命令(比如up,down在不同frame间跳转),...
分类:
数据库 时间:
2015-12-22 22:46:48
阅读次数:
254
今天碰到了个郁闷的问题,svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。无论你到那个父层次的目录执行“clean up“,都是报一样的错。执行cleanup时候,...
分类:
其他好文 时间:
2015-12-22 19:20:22
阅读次数:
401