Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2014-09-15 21:14:39
阅读次数:
190
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-09-15 12:41:48
阅读次数:
133
from:www.penlug.org/twiki/bin/view/Main/TightVNCUsing VNCThe toolvncserverallows you to run additional X servers on a single machine. These X servers ...
分类:
其他好文 时间:
2014-09-15 12:35:18
阅读次数:
762
LeetCode上面有这样两道Single Number 问题:
1、假设一个整型数组中所有的元素都出现了两次,唯独只有一个元素出现了一次,求出这个出现一次的元素。
2、假设一个整型数组中所有的元素都出现了三次,唯独只有一个元素出现了一次,求出这个出现一次的元素。
显然,两个问题唯一的不同就是大部分元素是出现了两次还是三次。
对于问题1:很好解决,通过异或运算,我们可以把所有出现两...
分类:
其他好文 时间:
2014-09-15 11:20:38
阅读次数:
112
class Solution {#define SINGLE 1#define MULTIP 2public: bool isMatch(const char *s, const char *p) { if (s == NULL || p == NULL) return true...
分类:
其他好文 时间:
2014-09-14 01:20:56
阅读次数:
261
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-09-13 20:06:45
阅读次数:
155
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-09-13 20:00:35
阅读次数:
207
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-09-13 20:00:25
阅读次数:
195
wordpress函数收集is_home() : 是否为主页is_single() : 是否为内容页(Post),是否是单篇文章is_page() : 是否为内容页(Page), 是否是页面文章is_category() : 是否为Category/Archive页, 是否是标签页is_tag()....
分类:
其他好文 时间:
2014-09-12 16:38:13
阅读次数:
274
Sawtooth Puzzle
Time Limit: 10 Seconds Memory Limit: 65536 KB
Recently, you found an interesting game called Sawtooth Puzzle. This is a single-player game played on a grid with 3 x 3 cells....
分类:
其他好文 时间:
2014-09-11 09:42:44
阅读次数:
248