http://www.infoq.com/cn/articles/etcd-interpretation-application-scenario-implement-principle https://linux.cn/article-4810-1.html#1_693...
分类:
其他好文 时间:
2015-08-15 20:11:58
阅读次数:
562
题目大意:给你N个串,求出来他们的最大公共子串的长度(子串反过来也算他们的子串)。分析:很久以前就做过这道题,当时是用的strstr做的,不过相同的都是枚举了子串......还是很暴力,希望下次遇到类似的题目我已经掌握高效的方法了。==================================...
分类:
其他好文 时间:
2015-08-15 18:15:59
阅读次数:
97
leetcode:Regular Expression Matching Implement regular expression matching with support for ‘.’ and ‘*’.
‘.’ Matches any single character.
‘*’ Matches zero or more of the preceding element.
The matc...
分类:
其他好文 时间:
2015-08-15 13:38:11
阅读次数:
132
problem:Implement a function void reverse(char *str) in C and C++ which reverse a null-terminated string.The solution:1. use another pointer end point...
分类:
其他好文 时间:
2015-08-15 06:42:04
阅读次数:
147
Promble:Implement an algorithm to determine if a string has all unique characters. What if you cannot use addtional data structure?My solution:1.ckeck...
分类:
其他好文 时间:
2015-08-15 01:29:27
阅读次数:
106
http://stackoverflow.com/questions/4817369/why-does-does-it-really-listt-implement-all-these-interfaces-not-just-ilis作者针对上面的问题,专门写了一篇文章http://blogs.ms...
分类:
其他好文 时间:
2015-08-14 15:06:37
阅读次数:
197
题目要求:Download the text filehere. (Right click and save link as).The goal of this problem is to implement a variant of the 2-SUM algorithm (covered in ...
分类:
其他好文 时间:
2015-08-14 11:22:36
阅读次数:
222
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front element.empt...
分类:
其他好文 时间:
2015-08-13 22:28:14
阅读次数:
99
Implement the following operations of a stack using queues.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get the top element.empty() -- Return whet...
分类:
其他好文 时间:
2015-08-13 22:21:08
阅读次数:
162