摘要: Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.This is a simple problem,public class Solution { public String strStr(String haystack, String needle) { int hlen = haystack.length(), nlen = needle.length(); S... 阅读全文
posted @ 2014-02-24 13:27 Averill Zheng 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e... 阅读全文
posted @ 2014-02-24 12:04 Averill Zheng 阅读(169) 评论(0) 推荐(0) 编辑