Implement strStr() 實現strStr()函數

題目描述 Implement strStr(). spa Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack. 指針 這道題讓咱們在一個字符串中找另外一個字符串第一次出現的位置,那咱們首先要作一些判斷,若是子字符串爲空,則返回0,若是子字
相關文章
相關標籤/搜索