题目:

题解:
class Solution {
public:
string reverseVowels(string s) {
auto isVowel = [vowels = "aeiouAEIOU"s](char ch) {
return vowels.find(ch) != string::npos;
};
int n = s.size();
int i = 0, j = n - 1;
while (i < j) {
while (i < n && !isVowel(s[i])) {
++i;
}
while (j > 0 && !isVowel(s[j])) {
--j;
}
if (i < j) {
swap(s[i], s[j]);
++i;
--j;
}
}
return s;
}
};













![[数据集][目标检测]电力场景轭式悬架锈蚀分类数据集6351张2类别](https://i-blog.csdnimg.cn/direct/1770dfff4d18469f936679a0f8ca905f.png)




