![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
String
FrancisGeek的工作室
算法&设计模式
展开
-
Implement strStr()
Description:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.问题描述在源字符串中找目标字符串,如果有,返回第一次出现的首字母索引,否则返回-1..解法一:思路:来个暴搜解法。。。Code:p原创 2017-02-28 21:00:00 · 176 阅读 · 0 评论 -
Number of Segments in a String
Description:Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the string does not contain any non-printable chara原创 2017-03-02 20:49:14 · 196 阅读 · 0 评论 -
Repeated Substring Pattern
Description:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowe原创 2017-03-02 21:02:36 · 149 阅读 · 0 评论