LeetCode刷題筆記(Reverse Vowels of a String)

緊接着筆者又刷了一道題,感覺套路和之前很類似。 具體題目如下: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Output: "holle" Example 2: Input: "leetcode" Output:
相關文章
相關標籤/搜索