classSolution{public:voidreverseString(vector<char>&s){int left =0;int right = s.size()-1;while(left <= right){auto tmp = s[left];s[left]= s[right];s[right]= tmp;left++;right--;}}};
四.第3次提交(左右指针,swap函数)
classSolution{public:voidreverseString(vector<char>&s){int left =0;int right = s.size()-1;while(left <= right){swap(s[left], s[right]);left++;right--;}}};
五.第4次提交(左右指针)
classSolution{public:voidreverseString(vector<char>&s){for(int i =0, j = s.size()-1; i < s.size()/2; i++, j--){swap(s[i], s[j]);}}};
文章目录 基站的主要组成天线馈线(电缆线)RRU(射频拉远单元,Remote Radio Unit)BBU(室内基带处理单元,Building Base band Unit)AAU(有源天线单元,Active Ant…