Update 字符串相关.md

master
Omooo 4 years ago
parent 6ec082b169
commit b24efe1bd9
  1. 10
      blogs/Algorithm/剑指 Offer/字符串相关.md

@ -64,3 +64,13 @@ class Solution {
}
```
[58 - II. 左旋转字符串](https://leetcode-cn.com/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/)
```java
class Solution {
public String reverseLeftWords(String s, int n) {
return s.substring(n) + s.substring(0, n);
}
}
```

Loading…
Cancel
Save