Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-02 21:13:05
阅读次数:
170
for index, value in enumerate(list): print index, value
分类:
编程语言 时间:
2014-07-02 20:57:35
阅读次数:
478
设备资源管理系统-验证码用于登录操作 操作: 1、从image.jsp的session对象中获取存放到验证码中的4个数字值 * 如果取出的值为空则不能登录系统,返回index.jsp 2、从页面上获取验证码文本框的值 * 如果获取的值为空则不能登录系统,返回index.js...
分类:
其他好文 时间:
2014-07-02 20:50:18
阅读次数:
142
设备资源管理系统-首页登录 操作: 1、获取页面中传递的登录名和登录密码 2、使用登录名查询用户表,查询是否存在记录: 如果存在(包括该用户的详细信息),往下继续执行,不存在,返回到index.jsp 3、从用户的详细信息中获取密码,判断密码是否为空,如果为空不能登录系统,跳转...
分类:
其他好文 时间:
2014-07-02 10:15:16
阅读次数:
361
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
分类:
其他好文 时间:
2014-07-02 10:03:09
阅读次数:
175
前言
索引之关系数据库中最重要的对象之一,他能显著减少磁盘I/O及逻辑读取的消耗,并以此来提升 SELECT 语句的查找性能。但它是一把双刃剑,使用不当反而会影响性能:他需要额外的控件来存放这些索引信息,并且当数据更新时需要一些额外开销来保持索引的同步。
形象的来说索引就像字典里的目录,你要查找某一个字的时候可以根据它的比划/拼音先在目录中找到对应的页码范围,然后在该范围中找到这个字。如果没有...
分类:
数据库 时间:
2014-07-02 09:26:58
阅读次数:
326
(一)二分的模版:
int binary_search(int *array, int length, int key) {
int start = 0, end = length - 1;
while(end >= start) {
int middle = start + (end - start) / 2;
int tmp = array[middle];
if(tmp <...
分类:
其他好文 时间:
2014-07-02 08:19:05
阅读次数:
211
[LeetCode]Maximum Depth of Binary Tree...
分类:
其他好文 时间:
2014-07-02 08:09:01
阅读次数:
175
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand at least one table uses a storage engine limited to row-based logging.InnoDB is limited to row-logging when transaction isolation level is REA...
分类:
数据库 时间:
2014-07-02 07:46:46
阅读次数:
322
判断一个二叉树是否是轴对称的是一个经典的算法问题,下面结合leetcode上的Symmetric Tree给出判断对称树的两种方法。
先看看问题描述:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, t...
分类:
其他好文 时间:
2014-07-02 06:58:05
阅读次数:
208