摘要: Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positi 阅读全文
posted @ 2019-08-12 15:53 fatttcat 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2019-08-12 15:36 fatttcat 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given an input string , reverse the string word by word. Example: Input: ["t","h","e"," ","s","k","y"," ","i","s"," ","b","l","u","e"] Output: [& 阅读全文
posted @ 2019-08-12 15:20 fatttcat 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given an input string, reverse the string word by word. Example 1: Example 2: Example 3: Note: A word is defined as a sequence of non-space characters 阅读全文
posted @ 2019-08-12 15:08 fatttcat 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Example 2: Input: "leetcode" Output: "leotcede" Exam 阅读全文
posted @ 2019-08-12 12:07 fatttcat 阅读(104) 评论(0) 推荐(0) 编辑