This website requires JavaScript.
Explore
Help
Register
Sign In
sainnhe
/
leetcode
Watch
1
Star
0
Fork
0
You've already forked leetcode
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
88ec5dc3d8
leetcode
/
notes
/
src
/
reverse_left_words.md
Sainnhe Park
76c26bb4c0
KMP
2022-11-30 23:27:41 +08:00
279 B
Raw
Blame
History
左旋转字符串
Leetcode
涉及到字符串翻转/旋转,都可以考虑全剧翻转+局部翻转。
比如这道题就可以先翻转前半部分,再翻转后半部分,最后翻转整个字符串。