Still 3 methods:Same with inorder, but post order is a little different. We need to treat it as reverse result of preorder.So we go to right branch fi...
分类:
其他好文 时间:
2015-03-18 08:57:58
阅读次数:
132
There are three methods to do it:1. recursive(use memory stack): (Time O(n), Space O(logn) 1 /** 2 * Definition for binary tree 3 * struct TreeNode .....
分类:
其他好文 时间:
2015-03-18 07:46:37
阅读次数:
117
编辑Ctrl + Space Basic code completion (the name of any class,method or variable)Ctrl + Shift + Space Smart code completion (filters the list of methods...
分类:
其他好文 时间:
2015-03-17 12:14:10
阅读次数:
165
stair climbing, print out all of possible solutions of the methods to climb a stars, you are allowed climb one or two steps for each time; what is tim...
分类:
其他好文 时间:
2015-03-15 12:14:56
阅读次数:
130
Interfaces are named collections of methods signaturespackage mainimport ( "fmt" "math")type geometry interface { area() float64 perim() f...
分类:
其他好文 时间:
2015-03-14 19:48:24
阅读次数:
92
Go supports methods defined on struct typespackage mainimport ( "fmt")type rect struct { width, height int}func (r *rect) area() int { return...
分类:
其他好文 时间:
2015-03-14 18:28:37
阅读次数:
153
http://www.journaldev.com/1789/java-reflection-tutorial-for-classes-methods-fields-constructors-annotations-and-much-more#reflection-fieldsReflection ...
分类:
编程语言 时间:
2015-03-13 00:03:49
阅读次数:
206
Using $templateCache for quickly retrieval from the cache after first time used.$templateCache mainly can use two methods:get(id)put(id, "your html co...
分类:
Web程序 时间:
2015-03-07 18:34:32
阅读次数:
171
//Use enum to create an enumeration. Like classes and all other named types, enumerations can have methods associated with them.// swift 中enum 变化比较大,枚...
分类:
编程语言 时间:
2015-03-05 12:27:07
阅读次数:
195
jQuery UI API -.position()所属类别方法重载(Method Overrides)|方法(Methods)|实用工具(Utilities)用法描述:相对另一个元素定位一个元素。返回:jQuery版本新增:1.8.position( options )参数类型描述optionsO...
分类:
Web程序 时间:
2015-03-05 00:11:24
阅读次数:
144