【题目】
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
1.查看所有用户:
select * from dba_users;
select * from all_users;
select * from user_users;
2.查看用户或角色系统权限(直接赋值给用户或角色的系统权限):
select * from dba_sys_privs;
select * from user_sys_privs;
3.查看角色...
分类:
数据库 时间:
2014-06-08 16:25:50
阅读次数:
229
原始form表单值获取方式(手动):$.ajax({
type: "POST",
url: "ajax.php",
data: "Name=摘取天上星&position=IT技术",
success: function(msg){alert(msg);},
error: function(error){alert(error);}
});JQ serialize()...
分类:
Web程序 时间:
2014-06-08 16:19:01
阅读次数:
280
前记
这本书Data Structure and Algorithm with Javascript
我将其翻译成>
为什么这么翻译?而不是翻译成"用javascript实现数据结构和算法"
原因有二:
一个,我觉的它更加简洁,第二个,我是想强调我们在这里使用的是javascript.
我不喜欢一些翻译的人把一个简单的语句进行加工,搞得晦涩难懂.我更喜欢外国人写书的
那种原汁原味....
分类:
编程语言 时间:
2014-06-08 15:15:41
阅读次数:
189
最近在做一个蓝牙相关的项目, 需要在应用进入后台, 或者手机属于锁屏状态的情况下, 仍然保持蓝牙连接, 并且能正常接收数据。本来以后会很麻烦, 但是学习了下..发现就2步而已。简单的不能再简单了。好了。下面是具体实现办法。1.在xxx-info.plist文件中, 新建一行 Required background modes , 加入下面两项。App shares data using Cor...
分类:
移动开发 时间:
2014-06-08 15:12:13
阅读次数:
310
题目
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be...
分类:
其他好文 时间:
2014-06-08 14:49:14
阅读次数:
347
题目
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
方法
使用DFS对树进行遍...
分类:
其他好文 时间:
2014-06-08 10:26:33
阅读次数:
207
最近打算搞一个app备份与恢复的小应用,顾名思义,必然包括app的备份和app的恢复两部分。备份部分由可以分为apk的备份与data的备份两部分。需要注意的是备份与恢复都需要一堆的权限,尤其是恢复的时候。
app的备份
首先看看下面几个目录:
system/app 系统自带的应用程序apk目录,无法删除。
data/app 用户程序安装的目录,有删除权限。安装时把apk文件复制到此目录。
...
分类:
移动开发 时间:
2014-06-08 10:25:38
阅读次数:
297
Oralce升级过程中,执行SQL> @?/rdbms/admin/catupgrd.sql脚本时,
遇到ORA-01722: invalid number报错,
导致报错的语句是 SELECT TO_NUMBER('DATA_VAULT_OPTION_ON') FROM v$option。
解决方法: 关闭Oracle Database Vault功能。...
分类:
数据库 时间:
2014-06-08 09:08:07
阅读次数:
251
MySQL总是崩溃
首先你应该试着找出问题MySQLd守护进程是否死掉或你的问题是否与你的客户有关。你可以用MySQLadmin version检查你的MySQLd服务器正常执行了多长时间,如果MySQLd死了,你可以在文件“MySQL-data-directory/'hostname'.err”中找到其原因。
使用MySQL时的一些常见错误
MySQL server has g...
分类:
数据库 时间:
2014-06-08 09:00:48
阅读次数:
286