Tag: string algorithm
A sentence is a list of words that are separated by a single space with no leading or trailing spaces. Each of the words consists of only uppercase and …
Given an alphanumeric string s, return the second largest numerical digit that appears in s, or -1 if it does not exist. An alphanumeric string is a string consisting …
Given a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is greater …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s, return whether it’s an IPv4 address. IPv4 addresses must follow the format A.B.C.D, where A, B, …
Given strings a and b, and an integer k, return whether a can be converted to b by shifting some characters clockwise at most k times. For example, “c” …