问题描述
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.
解决方案
/**
* Definition fo...
分类:
其他好文 时间:
2014-09-02 00:26:44
阅读次数:
217
R语言的merge函数可以实现类似SQL的有点类似 left join right join 或者类似union的效果。df1 = data.frame(CustomerId=c(1:6),Product=c(rep("Toaster",3),rep("Radio",3)))> df2 = data...
分类:
其他好文 时间:
2014-09-02 00:06:53
阅读次数:
1019
两个model,Product and Category;彼此之间有has_and_belongs_to_many的关系;期望在编辑project时,同时编辑project与category之间的关系;编辑project的界面如下:
添加 checkboxes
check_box and check_box_tag方法均可向form中添加checkboxes;由于需要重写check...
分类:
其他好文 时间:
2014-09-01 22:46:33
阅读次数:
262
由于PLSQL Developer没有提供64位的,于是根据网上的资料做了一下整理,发上来
1、下载并安装Oracle 11g R2 64位,在服务器上安装时忽略硬件检测失败信息;
2、下载Oracle 11g R2 32 位 客户端,将其解压到D:\app\Jack\product目录下,并命名为instantclient;
客户端下载可以自己去百度一下:ins...
分类:
数据库 时间:
2014-09-01 19:38:33
阅读次数:
231
1,好设计是有创意的innovative2,好设计让产品好用makes product useful3,好设计是美的aesthetic4,好设计让产品易被理解be understood5,好设计是不唐突的unobtrusive6,好设计是诚实的honest7,好设计是不过时的durable,time...
分类:
其他好文 时间:
2014-09-01 17:14:23
阅读次数:
201
代码如下: 1 public static int F=0,L=0; 2 3 static void Main(string[] args) 4 { 5 int first = 0;//当前取最大值时,对应的第一个数 6 ...
分类:
其他好文 时间:
2014-09-01 15:25:13
阅读次数:
227
表空间基本命令
--创建表空间 初始化大小10M 自动增长5M 最大50M
create tablespace duan datafile 'F:\oracle\product\10.2.0\oradata\orcl\duan.dbf' size 10M
autoextend on next 5M maxsize 50M;
--查询表空间的地址和空间名称
select fi...
分类:
数据库 时间:
2014-08-31 21:33:01
阅读次数:
599
SYN :同步分节; ACK :确认分节; TCP选项: 1. MSS选项: 发送SYN的TCP一端使用本项告知对端它的最大分节大小(maximum segment size)即MSS。即它在本连接的每个TCP分节中愿意接受的最大数据量。 发送端TCP使用接收端的MSS值作为所发送分节的最大...
分类:
其他好文 时间:
2014-08-31 18:34:01
阅读次数:
308
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-08-31 15:49:11
阅读次数:
180
新建环境变量(系统变量),变量名:ORACLE_HOME 变量值:E:\app\Administrator\product\11.2.0\dbhome_1新建环境变量(系统变量),变量名:ORACLE_SID 变量值:SID值修改PATH变量,在Path的【变量值】文本框中的最后面先加入一个";"分...
分类:
数据库 时间:
2014-08-30 22:58:20
阅读次数:
270