Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa...
分类:
编程语言 时间:
2015-06-07 18:38:54
阅读次数:
200
几条面向对象课上介绍的高质量代码写作原则: 1. Don't Repeat Yourself不要重复你自己,重复代码,类似代码都是问题的隐患。程序员为了能够节省时间,喜欢复制现成的代码,稍加修改制作自己的调用的函数(方法),这种做法将会把原有的问题复制一份,修改的时候也要修改两份。重复代码的问...
分类:
其他好文 时间:
2015-06-03 19:20:09
阅读次数:
73
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input case...
分类:
其他好文 时间:
2015-06-02 09:25:09
阅读次数:
115
Effective C++ Effective C++ Effective C++ Chapter 1. 让自己习惯C++ (Accustoming Yourself to C++) Chapter 1. 让自己习惯C++ (Accustoming Yourself to C++) Chapter ...
分类:
编程语言 时间:
2015-05-31 18:17:39
阅读次数:
100
转自:http://benchmarks.ro/2011/02/str_replace-vs-preg_replace/事实证明str_replace确实比preg_replace快。If you find yourself handling strings and replacing sub-st...
分类:
其他好文 时间:
2015-05-27 18:51:53
阅读次数:
121
You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible. This is my way of doing it. You start by learning the minimal to survive, then you integrate all ...
分类:
系统相关 时间:
2015-05-26 12:47:13
阅读次数:
203
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example:Given the following binary tree, 1 ...
分类:
其他好文 时间:
2015-05-25 16:50:52
阅读次数:
79
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For exam...
分类:
其他好文 时间:
2015-05-22 11:18:29
阅读次数:
107
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-05-22 09:22:05
阅读次数:
84
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2015-05-20 11:21:31
阅读次数:
157