1
2
3
4
5
6
7
8
// @Title: 左旋转字符串 (左旋转字符串 LCOF)
// @Author: 15816537946@163.com
// @Date: 2022-02-02 21:34:39
// @Runtime: 0 ms
// @Memory: 3 MB
func reverseLeftWords(s string, n int) string {
    return s[n:len(s)] + s[0:n]
}