题目描述
链接地址
解法
算法解释题目描述Given 3*n + 1 numbers, every numbers occurs triple times except one, find it.ExampleGiven [1,1,2,3,3,3,2,2,4,1] return 4ChallengeOne-pass, constant extra space.链接地址http://www.lintc...
分类:
其他好文 时间:
2015-07-19 23:39:56
阅读次数:
140
题目描述
链接地址
解法
算法解释题目描述Given 2*n + 1 numbers, every numbers occurs twice except one, find it. ExampleGiven [1,2,2,1,3,4,3], return 4链接地址http://www.lintcode.com/en/problem/single-number/解法 int singleNu...
分类:
其他好文 时间:
2015-07-19 20:14:13
阅读次数:
137
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-07-19 14:55:38
阅读次数:
116
Wildcard MatchingImplement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters...
分类:
编程语言 时间:
2015-07-19 01:18:52
阅读次数:
208
题意:给一个序列,序列中只有1个是单个的,其他都是成对出现的。也就是序列中有奇数个元素。要求找出这个元素。思路:成对出现用异或最好了。两个同样的数一异或就变零,剩下的,就是那个落单的。 1 class Solution { 2 public: 3 int singleNumber(vecto...
分类:
其他好文 时间:
2015-07-19 00:03:31
阅读次数:
167
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-07-18 21:14:50
阅读次数:
134
Single Threaded Execution Pattern【独木桥模式】一:single threaded execution pattern的参与者--->SharedResource(共享资源)二:single threaded execution pattern模式什么时候使用--->...
分类:
编程语言 时间:
2015-07-18 09:32:03
阅读次数:
130
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-07-18 08:22:25
阅读次数:
132
前言
Bob大叔提出并发扬了S.O.L.I.D五大原则,用来更好地进行面向对象编程,五大原则分别是:
The Single Responsibility Principle(单一职责SRP)The Open/Closed Principle(开闭原则OCP)The Liskov Substitution Principle(里氏替换原则LSP)The Interface Segrega...
分类:
编程语言 时间:
2015-07-17 14:05:31
阅读次数:
148
本人安装的是sublime text3
1.安装
这个过程下一步下一步就行
2.激活
在help菜单中选择输入验证码,如下整个都是:
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396...
分类:
其他好文 时间:
2015-07-17 12:03:54
阅读次数:
92