diff --git a/problems/0541.反转字符串II.md b/problems/0541.反转字符串II.md index 84061ef5..d9b9466c 100644 --- a/problems/0541.反转字符串II.md +++ b/problems/0541.反转字符串II.md @@ -63,6 +63,24 @@ public: }; ``` + +``` +class Solution { +public: + string reverseStr(string s, int k) { + int n=s.size(),pos=0; + while(pos