|
- Reverse String - LeetCode
1 Please don't post any solutions in this discussion 2 The problem discussion is for asking questions about the problem or for sharing tips - anything except for solutions 3 If you'd like to share your solution for feedback and ideas, please head to the solutions tab and post it there
- Reverse String II - LeetCode
Reverse String II - Given a string s and an integer k, reverse the first k characters for every 2k characters counting from the start of the string If there are fewer than k characters left, reverse all of them If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and leave the other as original
- Reverse Words in a String - LeetCode
Given an input string s, reverse the order of the words A word is defined as a sequence of non-space characters The words in s will be separated by at least one space Return a string of the words in reverse order concatenated by a single space Note that s may contain leading or trailing spaces or multiple spaces between two words
- Reverse Words in a String - LeetCode
Given an input string s, reverse the order of the words A word is defined as a sequence of non-space characters The words in s will be separated by at least one space Return a string of the words in reverse order concatenated by a single space Note that s may contain leading or trailing spaces or multiple spaces between two words
- Reverse Letters Then Special Characters in a String - LeetCode
Can you solve this real interview question? Reverse Letters Then Special Characters in a String - You are given a string s consisting of lowercase English letters and special characters Your task is to perform these in order: * Reverse the lowercase letters and place them back into the positions originally occupied by letters * Reverse the special characters and place them back into the
- Reverse Vowels of a String - LeetCode
Reverse Vowels of a String - Given a string s, reverse only all the vowels in the string and return it The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, more than once
- Reverse Words in a String III - LeetCode
Can you solve this real interview question? Reverse Words in a String III - Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order Example 1: Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Example 2: Input: s = "Mr Ding" Output: "rM gniD" Constraints: * 1 <= s length <= 5 * 104
- Reverse String - LeetCode
The input string is given as an array of characters s You must do this by modifying the input array in-place [https: en wikipedia org wiki In-place_algorithm] with O (1) extra memory
|
|
|