Compare commits

...
2 Commits
Author SHA1 Message Date
wolves 4180df8390 Merge branch 'main' of https://github.com/lWolvesl/leetcode 2026-03-01 01:03:15 +08:00
wolves 5b9cbe4aad routine 2026-01-03 23:12:06 +08:00
+9
View File
@@ -0,0 +1,9 @@
#include <string>
class Solution {
public:
std::string reversePrefix(std::string s, int k) {
std::reverse(s.begin(),s.begin()+k);
return s;
}
};