string v="aeiouAEIOU"; int l=0,r=s.size()-1; while (l<r){ while (l<r && v.find(s[l])==string::npos) l++; while (l<r && v.find(s[r])==string::npos) r--; ...
// Reverse the nodes of a linked list k at a time. If fewer than k nodes remain, leave them as-is.