LeetCode 1417. Reformat The String
Description https://leetcode.com/problems/reformat-the-string/ Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/reformat-the-string/ Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find…
Description https://leetcode.com/problems/find-and-replace-pattern/ Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the answer in any order.…
Description https://leetcode.com/problems/longer-contiguous-segments-of-ones-than-zeros/ Given a binary string s, return true if the longest contiguous segment of 1s is strictly longer than the longest contiguous segment of 0s in s. Return false otherwise. For example, in s…
Description https://leetcode.com/problems/sort-characters-by-frequency/ Given a string s, sort it in decreasing order based on the frequency of characters, and return the sorted string.…
Description https://leetcode.com/problems/sorting-the-sentence/ A sentence is a list of words that are separated by a single space with no leading or trailing spaces.…
Description https://leetcode.com/problems/occurrences-after-bigram/ Given words first and second, consider occurrences in some text of the form “first second third“, where second comes immediately after first, and third comes immediately after second. For…
Description https://leetcode.com/problems/palindrome-permutation/ Given a string s, return true if a permutation of the string could form a palindrome. Example 1: Input: s =…
Description https://leetcode.com/problems/generate-a-string-with-characters-that-have-odd-counts/ Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The…
Description https://leetcode.com/problems/rotated-digits/ x is a good number if after rotating each digit individually by 180 degrees, we get a valid number…
Description https://leetcode.com/problems/longest-nice-substring/ A string s is nice if, for every letter of the alphabet that s contains, it appears both in uppercase and lowercase. For example, “abABB” is nice because ‘A’ and ‘a’ appear,…