题目链接题意: 给出 n * n的矩阵,要求将矩阵顺时针旋转90°(不使用额外空间) 1 /* 2
Basically, divide the array into 4 along the diagonals, 3 then for each element
in the top ...
分类:
其他好文 时间:
2014-06-09 15:28:14
阅读次数:
280
var allchooseEmpID = "";var allchooseEmpName =
"";//自选经办人 function getJbrWinForMy() { top.MainFrameJS.openWindow({ width: 800,
height: 600, modal: tr....
分类:
Web程序 时间:
2014-06-09 14:36:12
阅读次数:
327
本文主题: 图标素材、浏览器兼容测试、 eclipse
插件、jquery插件、Android工具Android 上的 10 款 Web 开发应用工具 -
开源中国社区http://www.oschina.net/news/19793/top-10-web-development-apps-f...
分类:
系统相关 时间:
2014-06-08 22:25:36
阅读次数:
413
在用wine时遇到打开软件后不能关闭的问题,以下是解决方案首先了解一下top命令终端输入top后显示以下内容top - 13:05:54 up 2:08, 1
user, load average: 0.54, 0.57, 0.67Tasks: 228 total, 3 running, 225 s...
分类:
其他好文 时间:
2014-06-08 19:17:25
阅读次数:
282
【题目】
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to...
分类:
其他好文 时间:
2014-06-08 17:52:45
阅读次数:
235
今天在群里面,有人抛出了一个关于css中margin-right没有效果的问题。CSS代码和HTML代码如下:
.style1{
width:400px;
height:440px;
background-color:red;
border:5px solid silver;
margin-top:20%;
margin-right:30%;
}...
分类:
其他好文 时间:
2014-06-08 17:38:27
阅读次数:
204
问题
给定N个元素的数组,求第k大的数。
特例
当k=0时,就是求最大值,当k=N-1时,就是求最小值。
应用
顺序统计
求top N排行榜
基本思想
使用快速排序方法中的分区思想,使得a[k]左侧没有更小的数,右侧没有更大的数
性能
快速选择算法的复杂度...
分类:
其他好文 时间:
2014-06-08 09:58:08
阅读次数:
211
android 中使用Canvas的drawText绘制文本的位置,是基于基线的。如下图:
其中字母Q的小尾巴在横线下面了。
怎么样找准字母的中心位置呢?
先看下面的例子:(右边的数字,表示字体的 left, top, right, bottom)
这里面的关键是Paint.getTextBound。 getTextBound会填充一个Rect,这个Rect表示...
分类:
移动开发 时间:
2014-06-08 09:08:44
阅读次数:
279
Rotating Sentences
In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to b...
分类:
其他好文 时间:
2014-06-08 04:51:34
阅读次数:
236