摘要:
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... 阅读全文
摘要:
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e... 阅读全文