Category: string
Given two strings s0 and s1, return whether you can obtain s1 by removing 1 letter from s0. Example 1 Input s0 = “hello” s1 = “hello” Output false …
You are given a string s and two integers i and j where i < j. Let’s say p is an infinite string of s repeating forever. Return the …
Given strings s0, s1 and a positive integer n, return the nth term of the sequence A where: A = s0 A = s1 A = A + A …
Given a string s representing a phrase, return its acronym. Acronyms should be capitalized and should not include the word “and”. Example 1 Input s = “For your information” …
Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as a single count and character. For example, the …