Category: string
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: “aba” Output: True Example 2: Input: …
Given a string S of ‘(‘ and ‘)’ parentheses, we add the minimum number of parentheses ( ‘(‘ or ‘)’, and in any positions ) so that the resulting …
A string S represents a list of words. Each letter in the word has 1 or more options. If there is one option, the letter is represented as is. …
Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every element of the array should …
Task: Write a function that takes a list of strings and prints them, one per line, right justified, in a rectangular frame. For example the list gets printed as: …