This commit is contained in:
2022-11-30 23:27:41 +08:00
parent 72555b19e0
commit 76c26bb4c0
5 changed files with 134 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
# 左旋转字符串
[Leetcode](https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/)
涉及到字符串翻转/旋转,都可以考虑全剧翻转+局部翻转。
比如这道题就可以先翻转前半部分,再翻转后半部分,最后翻转整个字符串。