题目
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find ...
分类:
其他好文 时间:
2014-07-08 21:43:08
阅读次数:
219
二、建立第一个Demo,实现查数据库显示到页面
步骤:1.建立MySQL数据库表
2.整合SSH框架
3.用ExtJS显示
关键注意事项:
Ext.data.JsonReaderroot()中理解的含义,例如,请求的action返回的JSON
{"list":[{"id":1,"name":"hhx","phone":"1...
分类:
Web程序 时间:
2014-07-08 20:48:39
阅读次数:
242
今天查看资料,对log_archive_dest_n和standby_archive_dest的关系有点模糊了,做个简单的测试,缕清关系、加深记忆。
首先看一下我们的实验环境,10grac,双节点:node1和node2
SQL> host hostname
node1
SQL> select * from v$version;
BANNER
-----------------------...
分类:
数据库 时间:
2014-07-08 20:11:47
阅读次数:
278
Crashing Robots
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7505
Accepted: 3279
Description
In a modernized warehouse, robots are used to fetch the g...
分类:
其他好文 时间:
2014-07-08 18:25:45
阅读次数:
173
#!/bin/bash
HOST_NAME="localhost"
PORT=3306
USERNAME="root"
PASSWORD="root"
DBNAME="test"
TABLENAME="tb_test"
today=`date +%Y-%m-%d`
#删除数据
delete_sql="delete from ${TABLENAME} whe...
分类:
数据库 时间:
2014-07-08 15:40:54
阅读次数:
325
1.下载mongodb的windows版本,有32位和64位版本,根据系统情况下载,下载地址:http://www.mongodb.org/downloads
2.解压缩至D:/mongodb即可
3.创建数据库文件的存放位置,比如D:/mongodb/data/db。启动mongodb服务之前需要必须创建数据库文件的存放文件夹,否则命令不会自动创建,而且不能启动成功。默认文件夹路径为c:/d...
分类:
数据库 时间:
2014-07-08 15:30:07
阅读次数:
401
Method 4: Gets the value of element number i
For example, if list is {22, 33, 44, 55, 66, 77, 88, 99}, then get(list, 2) will return 44.
Solution 1:
static int get(Node list, int i) {
if (i < 0) ...
分类:
其他好文 时间:
2014-07-08 14:07:52
阅读次数:
262
Oracle新建系统表时,要求主键为32位uuid,猜测Oracle肯定会提供相关的函数。
翻阅相关文档,果然发现Oracle提供的函数 sys_guid() 用于获取32位uuid,简单使用为
select sys_guid() from dual;
该函数返回32位的uuid为大写,可以使用 lower(sys_guid()) 转为小写....
分类:
数据库 时间:
2014-07-08 13:23:44
阅读次数:
343
为了解决ListView中Item里的Button独立事件响应,可以采用以下方法:
在BaseAdapter的getview里添加红色代码:
@Override
public View getView(int position, View view, ViewGroup arg2) {
view = layoutInflater.from(context).inflate(...
分类:
其他好文 时间:
2014-07-08 13:15:00
阅读次数:
176