Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
click to show follow up.
Follow up:
Did you use extra space?
A straight forward solution using O(m...
分类:
其他好文 时间:
2014-10-29 17:02:17
阅读次数:
206
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 fol...
分类:
其他好文 时间:
2014-10-29 14:36:46
阅读次数:
217
(2)解锁方法alter system kill session '878,1773'; /*878为SID,1773为SERIAL#*/select /*+ rule */ s.username, decode(l.type,'tm','table lock','tx','row lock',nu...
分类:
其他好文 时间:
2014-10-28 21:34:35
阅读次数:
260
写操作:
Java代码
/**
*
* 层次结构就是workbook-->Sheet-->Row-->Cell
* 只要按照这种层次结构操作就不会有什么大的问题
* @author Administrator
*
*/
public class Test1 {
public static v...
分类:
其他好文 时间:
2014-10-28 17:51:10
阅读次数:
269
查看数据库获取服务器上的数据库列表通常很有用。执行show databases;命令就可以搞定。mysql> show databases;创建数据库mysql> create database db_test; Query OK, 1 row affected (0.00 sec)删除数据库删除数...
分类:
数据库 时间:
2014-10-28 17:41:50
阅读次数:
282
查看数据库
获取服务器上的数据库列表通常很有用。执行show databases;命令就可以搞定。
mysql> show databases;
创建数据库
mysql> create database db_test;
Query OK, 1 row affected (0.00 sec)
使用数据库
数据库一旦创建,就可以通过“使用...
分类:
数据库 时间:
2014-10-28 15:38:46
阅读次数:
230
storyboard:描述软件界面,大范围,重量级,比较适合描述整个软件的所有界面xib:描述软件界面,小范围,轻量级,比较适合描述某个小界面两个各有优缺点//1.加载RowView.xibNSArray*views = [[NSBundlemainBundle]loadNibNamed:@"Row...
分类:
其他好文 时间:
2014-10-28 00:32:31
阅读次数:
232
--create or replace 创建或替换,如果存在就替换,不存在就创建create or replace procedure pis cursor c is select * from dept2 for update;begin for row_record in c loop if (...
分类:
数据库 时间:
2014-10-28 00:29:31
阅读次数:
268
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use...
分类:
其他好文 时间:
2014-10-27 17:33:44
阅读次数:
223
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],
...
分类:
其他好文 时间:
2014-10-27 15:36:28
阅读次数:
190