牛客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
相關文章
相關標籤/搜索