Category: string
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 positions. Given a …
A Palindrome is a string that its reverse form is exactly the same. A case-insensitive Palindrome test ignores the cases, for example, “Aba” is a case-insensitive Palindrome. Write a …
Same Email addresses can have different forms for example, in the format of “username@domain” – the username part can have the optional dots to separate. The following email addresses …
Given a string that contains characters of ASCII no more than 256, sort it in non-ascending order based on the frequency of the characters. For example, Input “tree” the …
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string does not contain …