碰到的第一个题就是九宫格的问题,
Valid Sudoku
determine if a Sudoku is valid, according to: http://sudoku.com.au/TheRules.aspx
The Sudoku board could be partially filled, where empty cells are fille...
分类:
其他好文 时间:
2015-04-21 18:12:06
阅读次数:
134
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2015-04-21 17:55:03
阅读次数:
104
正在连接的用户不能删除,除非是确实要删除的话,否则请谨慎操作,操作步骤如下 1、select sid,serial#,username from v$session where user='USERNAME'; 2、alter system kill session 'sid,serial#'; 3...
分类:
其他好文 时间:
2015-04-21 17:34:41
阅读次数:
100
1、正在连接的用户不能删除,确实要删除的话,如下 select sid,serial#,username from v$session where user='USERNAME'; alter system kill session 'sid,serial#'; drop user username...
分类:
其他好文 时间:
2015-04-21 17:33:09
阅读次数:
169
1.SQL注入:(如果是这样写的话)$username=$_POST['username'];$password=md5($_POST['password']);$sql="SELECT * FROM user WHERE username='$username' AND password='$pa...
分类:
Web程序 时间:
2015-04-21 17:31:15
阅读次数:
156
1、原始数据
2、把running_number转成数据,并加上一列有序数字SELECT d.running_number+0 running_number,@a:=@a+1 rn FROM device_data d,(SELECT @a:=0) a
where d.device_id=13 order by d.running_number;3、running_number与有序数据的差,差...
分类:
数据库 时间:
2015-04-21 16:06:56
阅读次数:
229
如题,“扩展方法where方法查询不到数据,不会抛异常,也不是返回的null”,示例代码如下:Product类: public class Product { private string name; public string Name { ...
分类:
其他好文 时间:
2015-04-21 14:26:11
阅读次数:
123
在项目在对某个form错误检查时候发现,当使用app_query.append时候,查询记录到一定数量时候会报错:数字或值错误。后来在matalink上查找之后发现原来用 app_query.append时候,where语句里面字节必须《2000,当大于这个字节数就会发生溢出。因此顺便看了一下app...
分类:
移动开发 时间:
2015-04-21 14:20:24
阅读次数:
130
declare @id intdeclare @name nvarchar(100) declare cur cursor for select id,name from JLCheckDocumentBill where id in (1,2,3) open cur fe...
分类:
数据库 时间:
2015-04-21 12:50:13
阅读次数:
123
Given a range [m, n] where 0
For example, given the range [5, 7], you should return 4.
Credits:
Special thanks to @amrsaqr for adding this problem and creating all test cases.
code is...
分类:
编程语言 时间:
2015-04-21 09:43:12
阅读次数:
188