自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 Leetcode Binary Tree Inorder Traversal

/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode left; TreeNode right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; / class Solution { public: vector inor...

2014-10-10 23:51:00 152

转载 LeetCode Valid Parentheses

#include <iostream> #include <string> #include <stack> #include <cmath> using namespace std; class Solution { public: bool isValid(string s) { stack <char&...

2014-08-16 19:01:00 107

转载 LeetCode Single Number

Method I class Solution { public: int singleNumber(int A[], int n) { int mySum = 0, sum = 0; map<int, int>toolMap; for(int i = 0; i<n; i++) { ...

2014-08-16 09:52:00 98

转载 LeetCode hasCycle

Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? #include <iostream> struct ListNode { int val; ListNode *next; ...

2014-08-16 09:51:00 187

转载 KMP

KMP 标签(空格分隔): Data-Structure 照着金叔课本来的,因为看了其他各种版本,各种混乱 8.15 普通解法 #include <iostream> #include <cstring> using namespace std; //textbook, the regular solution void getNext(const char...

2014-08-16 09:45:00 136

转载 LeetCode #133 Remove Nth Node From End of List

LeetCode #133 Remove Nth Node From End of List My Code: #include <iostream> #include <cstdlib> using namespace std; struct ListNode { int val; ListNode *next; ListNode(i...

2014-08-07 17:52:00 114

转载 LeetCode #151 Two Sum

# 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 return indices of the two numbers such that they...

2014-08-05 22:43:00 127

转载 一次apache服务器配置中出现的问题

一次apache服务器配置中出现的问题 在windows server 2008(虚拟)上配置apache+MySQL+PHP的过程中,出现了如下的问题: php的版本 php使用了5.3.4 thread-safe VC6 编译的版本,只有这个版本才具有和apache2.2相符的php5apache2_2.dll,否则apache启动不了 http.conf 的配置 只加了一条Loa...

2014-08-02 23:55:00 200

转载 nodejs 学习笔记

nodejs/express note express 安装 推荐全局方式 npm install -g express 并且windows下还要执行一次 npm install -g express-generator,否则在cmd中express无效 express 创建ejs项目 express 4.x下,部分命令有变动 (版本害死人啊 node.js 开发指南这本书应该更新了)...

2014-08-02 23:40:00 97

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除