Regular Expression Matching
题目:
Implement regular expression matching with support for ‘.’ and ‘*’.
‘.’ Matches any single character.
‘*’ Matches zero or more of the preceding element.
Th...
分类:
其他好文 时间:
2015-05-28 21:31:52
阅读次数:
197
Problem Description
There is a sequence firstly empty. We begin to add number from 1 to N to the sequence, and every time we just add a single number to the sequence at a specific position. Now, we w...
分类:
其他好文 时间:
2015-05-28 14:11:18
阅读次数:
103
原题:
Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.
第一种:
这种最常用,设置一个inspace作为布尔变量,标志当前输入是否在字符中,或在字符外
#include...
分类:
编程语言 时间:
2015-05-28 14:10:28
阅读次数:
193
单例模式效果可以用下面这张图表示,服务端的服务实例只有一个,任何一个客户端访问的服务端都是相同的服务实例。意味着服务端可以留下不同客户端的脚印。 使用也很简单,只需要将ServiceBehavior的上下文模式InstanceContextMode设置为Single即可。可以参照上一篇介绍实例上.....
分类:
其他好文 时间:
2015-05-27 22:27:53
阅读次数:
218
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 digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2015-05-27 21:10:51
阅读次数:
137
1,新建Single View Application工程,新建SecondViewController2,在SecondViewController中设置代理 #import @protocol secondViewControllerDelegate - (NSString *)value;@....
分类:
移动开发 时间:
2015-05-27 18:50:59
阅读次数:
139
对象字面量: 指的是用大括号括起来的一组以逗号分隔的属性所定义的对象,属性用冒号设置值,而不是等号。对象字面量也可以包括数组,他是用方括号括起来的一组以逗号分隔的成员。var spa = { title:'Single page application'; author:['mike','jo...
分类:
其他好文 时间:
2015-05-26 21:06:27
阅读次数:
116
开机启动时按“command+S”。这时进入单一用户模式(Single user model)。Mac OS的单一用户模式有准入特权(Root access privilege)而不要求根密码(root password)。出现像DOS一样的提示符 #root>。在#root>下逐步输入以下命令,注意空格区分大小写
第一步:执行硬盘检测(只读), 这一步可以省略
/sbin/fsck -y
...
分类:
移动开发 时间:
2015-05-26 16:17:06
阅读次数:
162
Regular Expression MatchingImplement regular expression matchingwith support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of...
分类:
编程语言 时间:
2015-05-25 14:25:56
阅读次数:
734
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 ...
分类:
其他好文 时间:
2015-05-25 14:20:09
阅读次数:
97