add: 左旋转字符串

This commit is contained in:
yige committed 2020-05-08 17:58:52 +08:00
1 parent 3b8d9b3f40
commit c027a13f6e
4 files changed
+26 -1

No files matched your search

@@ -0,0 +1,6 @@
import { reverseLeftWords } from '../../src/string/zuo-xuan-zhuan-zi-fu-chuan-lcof'
test('左旋转字符串', () => {
expect(reverseLeftWords('abcdefg', 2)).toBe('cdefgab')
expect(reverseLeftWords('lrloseumgh', 6)).toBe('umghlrlose')
})