码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
[leetcode] Wildcard Matching
题目:(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
Cracking the coding interview汇总目录
很久之前刷的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
leetcode之找光棍数
题目: 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
[leetcode] Regular Expression Matching
题目:(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
leetcode之LRU实现
题目: 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
LeetCode--Implement strStr()
题目: 我的方案: 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
【leetcode】Regular Expression Matching (hard) ★
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
Lintcode: Implement Queue by Stacks 解题报告
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
LRU Cache -- LeetCode
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
SON-RPC for Java
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!