一、前言git add命令主要用于把我们要提交的文件的信息添加到索引库中。当我们使用git commit时,git将依据索引库中的内容来进行文件的提交。二、基本git add表示 add to index only files created or modified and not those de...
分类:
其他好文 时间:
2014-07-03 10:22:49
阅读次数:
218
class Solution{public: vectorpreorderTraversal(TreeNode *root) { vectorpreOrder; Traversal(root,preOrder); return preOrder; } stack st;private: voi...
分类:
其他好文 时间:
2014-07-03 10:10:24
阅读次数:
165
1. Error: Dangling meta character '*' near index 0对字符串使用split()方法截取 * ? + / | 等字符的时候会报以下异常 Dangling meta character '?' near index 0 ?+、*、|、\等符号在正则表达示中...
分类:
编程语言 时间:
2014-07-03 07:13:36
阅读次数:
222
测试了两个case,属于之前blog的遗留问题: innodb如何加载数据字典 flush tables都做了什么操作先来看下innodb加载数据字典: 首次使用:select * from tt;1. 创建handler对象函数调用栈: open_binary_frm ...
分类:
数据库 时间:
2014-07-03 06:21:07
阅读次数:
318
Wiki 安装:Linux(Redhat EL5.3)下安装配置MediaWikiwiki配置:配置文件:DefaultSettings.php //权限等配置左边导航条:/wiki/index.php/MediaWiki:Sidebar* cc项目 //一级导航** api|API文档* navi...
分类:
其他好文 时间:
2014-07-03 06:04:40
阅读次数:
266
1. TypeError: string indices must be integers, not str字符串类型取第index个字符的时候,应该传入int而不是str。如1a='abcdef'2printa[0]3#而不是 print a['0']更常见的情况是把一个string当成了字典在使...
分类:
其他好文 时间:
2014-07-03 00:36:01
阅读次数:
746
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2014-07-02 22:49:05
阅读次数:
249
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-07-02 22:34:44
阅读次数:
318
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2014-07-02 22:13:23
阅读次数:
191
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:
其他好文 时间:
2014-07-02 22:10:42
阅读次数:
262