
overlapped
Given a string s and a dictionary d, find the number of pairs of words from the dictionary,…
smallestPalindrome
Given a string s find the lexicographically smallest palindrome of the same length that is lexicographically greater than or equal…
firstOccurrenceOfNumber
A sequence of digits is obtained by writing down decimal representations of all integers starting…
PasswordPolicy
Độ mạnh của mật khẩu vẫn thường xuyên bị xem thường. Người dùng thường thích…
diverseString
A string is called diverse if it contains consecutive (adjacent) letters of the Latin alphabet and each…
longestDigitsPrefix
Given a string, output its longest prefix which contains only digits. Example For inputString = "123aa1", the…
StringPeriod
Period of a string S is a string T of minimum length, such that S is either equal to T, or can be…
evenSubStrings
You are given a string s, which only contains digits 1,2,..,9. A substring s[l,r] of s is called even if the number represented…