KMP
This commit is contained in:
7
notes/src/reverse_left_words.md
Normal file
7
notes/src/reverse_left_words.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# 左旋转字符串
|
||||
|
||||
[Leetcode](https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/)
|
||||
|
||||
涉及到字符串翻转/旋转,都可以考虑全剧翻转+局部翻转。
|
||||
|
||||
比如这道题就可以先翻转前半部分,再翻转后半部分,最后翻转整个字符串。
|
Reference in New Issue
Block a user