Practicing Rust – Swapping Vowels
Hi, everyone,This is the Practicing Rust column. Today, let’s look at a small case: swapping vowels. Question Given a string <span>s</span>, swap all the vowels in the string and return the resulting string. The vowels include <span>'a'</span>, <span>'e'</span>, <span>'i'</span>, <span>'o'</span>, <span>'u'</span>, <span>'A'</span>, <span>'E'</span>, <span>'I'</span>, <span>'O'</span>, <span>'U'</span>. Example: input: “hello” output: “holle” input: leetcode output: leotcede … Read more