跳过正文
  1. 面试题库/

04|字符串

·139 字·1 分钟
目录
算法面试题库 - 这篇文章属于一个选集。
§ 4: 本文

1. 反转字符串
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/reverse-string/

题解: https://programmercarl.com/0344.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2.html

2. 反转字符串 II
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/reverse-string-ii/

题解: https://programmercarl.com/0541.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2II.html

3. 替换空格
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/ti-huan-kong-ge-lcof/

题解: https://programmercarl.com/%E5%89%91%E6%8C%87Offer05.%E6%9B%BF%E6%8D%A2%E7%A9%BA%E6%A0%BC.html

4. 左旋转字符串
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/

题解: https://programmercarl.com/%E5%89%91%E6%8C%87Offer58-II.%E5%B7%A6%E6%97%8B%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2.html

5. 实现 strStr()
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/

题解: https://programmercarl.com/0028.%E5%AE%9E%E7%8E%B0strStr.html

6. 重复的子字符串
#

难度: 🟢 简单

算法链接: https://leetcode.cn/problems/repeated-substring-pattern/

题解: https://programmercarl.com/0459.%E9%87%8D%E5%A4%8D%E7%9A%84%E5%AD%90%E5%AD%97%E7%AC%A6%E4%B8%B2.html

算法面试题库 - 这篇文章属于一个选集。
§ 4: 本文