题目:(DP,BackTracking, Greedy,String)Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequ...
分类:
其他好文 时间:
2014-12-27 00:13:18
阅读次数:
292
很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍。
Chapter 1 | Arrays and Strings
1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional
data stru...
分类:
其他好文 时间:
2014-12-26 20:20:00
阅读次数:
452
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without ...
分类:
其他好文 时间:
2014-12-25 23:43:28
阅读次数:
450
题目:(DP ,BackTracking, String)Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more...
分类:
其他好文 时间:
2014-12-25 06:34:21
阅读次数:
169
题目:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of th...
分类:
其他好文 时间:
2014-12-23 00:22:19
阅读次数:
227
题目:
我的方案:
public class Solution {
public int strStr(String haystack, String needle) {
int hslen=haystack.length();
int nllen=needle.length();
int rlen=-1;
...
分类:
其他好文 时间:
2014-12-22 16:22:52
阅读次数:
150
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2014-12-21 23:32:16
阅读次数:
335
Implement Queue by Stacks 原题链接 : http://lintcode.com/zh-cn/problem/implement-queue-by-stacks/#As the title described, you should only use two stacks t...
分类:
其他好文 时间:
2014-12-20 16:46:10
阅读次数:
270
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
系统相关 时间:
2014-12-20 15:32:13
阅读次数:
217
JSON-RPC for Javahttps://github.com/briandilley/jsonrpc4j#json-rpc-for-javaThis project aims to provide the facility to easily implement JSON-RPC for ...
分类:
编程语言 时间:
2014-12-20 14:07:21
阅读次数:
510