摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNod... 阅读全文
posted @ 2014-10-10 23:51 Haeckel 阅读(102) 评论(0) 推荐(0) 编辑
摘要: ```cpp#include #include #include #include using namespace std;class Solution {public: bool isValid(string s) { stack parenStack; char... 阅读全文
posted @ 2014-08-16 19:01 Haeckel 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ## Method I```cppclass Solution {public: int singleNumber(int A[], int n) { int mySum = 0, sum = 0; maptoolMap; for(int i = 0;... 阅读全文
posted @ 2014-08-16 09:52 Haeckel 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?```cpp#include struct ListNode { int... 阅读全文
posted @ 2014-08-16 09:51 Haeckel 阅读(200) 评论(0) 推荐(0) 编辑
摘要: # KMP 标签(空格分隔): Data-Structure---照着金叔课本来的,因为看了其他各种版本,各种混乱8.15 普通解法 #include #include using namespace std; //textbook, the regular solution void g... 阅读全文
posted @ 2014-08-16 09:45 Haeckel 阅读(134) 评论(0) 推荐(0) 编辑
摘要: # LeetCode #133 Remove Nth Node From End of List---My Code: #include #include using namespace std; struct ListNode { int val; ... 阅读全文
posted @ 2014-08-07 17:52 Haeckel 阅读(89) 评论(0) 推荐(0) 编辑
摘要: # LeetCode #151 Two Sum---Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should re... 阅读全文
posted @ 2014-08-05 22:43 Haeckel 阅读(215) 评论(0) 推荐(0) 编辑
摘要: # 一次apache服务器配置中出现的问题---在windows server 2008(虚拟)上配置apache+MySQL+PHP的过程中,出现了如下的问题:## php的版本php使用了5.3.4 thread-safe VC6 编译的版本,只有这个版本才具有和apache2.2相符的php5... 阅读全文
posted @ 2014-08-02 23:55 Haeckel 阅读(157) 评论(0) 推荐(0) 编辑
摘要: # nodejs/express note---## express 安装 推荐全局方式 `npm install -g express` 并且windows下还要执行一次 `npm install -g express-generator`,否则在cmd中express无效 ##express 创... 阅读全文
posted @ 2014-08-02 23:40 Haeckel 阅读(92) 评论(0) 推荐(0) 编辑