1. add a new branch cd workspace git branch user1/newbranch1 git checkout user1/newbranch1 or git checkout -b user2/newbranch2 2. when user1/newbranch...
分类:
其他好文 时间:
2014-07-16 23:09:50
阅读次数:
164
git tag is used to create labels, usually for version numbers. Format: git tag Example: git tag v0.1 HEAD is to create a version number v0.1 on curren...
分类:
其他好文 时间:
2014-07-10 14:29:01
阅读次数:
213
给字符串的字符和数字间加上空隔var str = 'a23dssf12ldf2lf4';function addSplit(str){ var reg = /(\D+)/g; var str = str.replace(/(\d+)/g, ' $1 '); return str.r...
分类:
其他好文 时间:
2014-07-10 12:40:38
阅读次数:
179
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.方法一:最先想到的就是递归,注...
分类:
其他好文 时间:
2014-07-10 09:58:40
阅读次数:
224
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-07-07 23:24:09
阅读次数:
210
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.方法:在inorder中寻找...
分类:
其他好文 时间:
2014-07-07 23:18:53
阅读次数:
283
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-07-07 22:57:13
阅读次数:
309
InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法140628 8:10:48 [Note] Plugin 'FEDERATED' is disabled.140628 8:10:48 InnoDB: The...
分类:
数据库 时间:
2014-07-07 21:36:13
阅读次数:
810
Built-in Control Structures 内置控制结构1 if 控制结构scala的if跟java的if结构上相同,功能上也差不太多,scala的说法是,if能够返回一个值 val fileName = if (!args.isEmpty) args(0) else "default....
分类:
其他好文 时间:
2014-07-07 18:33:10
阅读次数:
169
【题目】
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recursive solution is trivial, could you do it iteratively?
【题意】
非递归实现后续遍...
分类:
其他好文 时间:
2014-06-30 10:10:10
阅读次数:
177