摘要:
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.Summary: be careful about the corner case, haystack = "", needle = "" 1 char *strStr(char *haystack, char *needle) { 2 if(haystack[0] == '\0' && 阅读全文