[SSOC'23] reverse vowels in a string
Is your feature request related to a problem? Please describe. Given a string s, reverse only all the vowels in the string and return it.
example: Input: s = "hello" Output: "holle"
Describe the solution you'd like The solution will be in c++.
please assign me this issue under ssoc'23.
please assign this issue i have the code in c,c++,java,python
@Kumar-laxmi pls assign me, I am writing the BF code for this
string reverseVowels(string s) {
unordered_set<char> vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'};
int start = 0, end = s.length() - 1;
while (start < end) {
if (vowels.count(s[start]) == 0) {
start++;
} else if (vowels.count(s[end]) == 0) {
end--;
} else {
swap(s[start], s[end]);
start++;
end--;
}
}
return s;
}
Also, I can Implement in more than 3-4 languages like C,Python , Js
pls assign me @Kumar-laxmi
@Kumar-laxmi sir I can code it using c, c++ . Kindly assign me this task.
@Kumar-laxmi I would like to contribute to this issue. Please assign me this issue.
@Kumar-laxmi please assign me this Issue I would like to contribute
Please assign me
Stale issue message