牛客OJ:字符串左移

有坑,注意空串的特殊样例。c++ #include <bits/stdc++.h> using namespace std; class Solution { public: string LeftRotateString(string str, int n) { int l = str.length(); n = n%l; string
相关文章
相关标签/搜索