【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
【题目】
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
【题意】
给定一个mXn的矩阵,如果其中的元素为0,则对应的行和列都用0填充。
不能申请额外的空间。
【思路】
第一行和第一列空出来标记需要置0的列和行
第一遍扫描:
扫描第一行,判断第一行是否需要清零
...
分类:
其他好文 时间:
2014-06-05 08:07:11
阅读次数:
229
生产环境提升rman备份速度----启动块跟踪
【环境】
AIX(5300-08)、oracle10g(10.2.0.1.0-64bit)
【目标】
由于生产环境数据量较大,欲加快rman备份的速度
【方法】
启动块跟踪
【操作】
SQL> alter database enable block changetracking using file '/home/oracle/blo...
分类:
其他好文 时间:
2014-06-05 01:15:36
阅读次数:
323
解决办法:
mysql> SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.03 sec)
mysql> create database roger;
Query OK, 1 row affected (0.00 sec)
也就是用mysql> SET PASSWORD = PASSWORD('123456...
分类:
数据库 时间:
2014-06-05 00:19:53
阅读次数:
294
public abstract class ModelsBase {
//自动从DataRow里取数据给属性赋值 public void RightDataFrom(DataRow row) { Type type =
this.GetType(); //遍历每一个属性 foreach...
分类:
其他好文 时间:
2014-06-04 20:18:20
阅读次数:
197
当我们创建Web Performance and Load Test
Project时,经常会遇到下面这些问题: 1. 当点击Add Recording时, 左边的record tree没有出现: 解决方法: 打开IE
Manage add-ons: Enable “Microsoft Web Te...
分类:
Web程序 时间:
2014-06-03 11:12:59
阅读次数:
369
如果不想修改代码可以通过修改计算机配置完成 http://blog.csdn.net/g710710/article/details/21166453
用如下方法生成的xls不会提示此错误
protected static void ExportExcel(DataTable dt)
{
if (dt == null || dt.Row...
分类:
其他好文 时间:
2014-06-03 02:28:45
阅读次数:
236
使用NOPI读取Excel的例子很多,读取Word的例子不多。Excel的解析方式有多中,可以使用ODBC查询,把Excel作为一个数据集对待。也可以使用文档结构模型的方式进行解析,即解析Workbook(工作簿)、Sheet、Row、Column。Word的解析比较复杂,因为Word的文档结构模型...
分类:
其他好文 时间:
2014-05-31 00:53:10
阅读次数:
1651
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-05-30 14:59:37
阅读次数:
241
Recently in one of my project I needed to have
an option to display the DateTimePicker allowing user to pick both the date and
the time. When I drag t...
分类:
其他好文 时间:
2014-05-29 17:46:20
阅读次数:
239