Category: string
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s of words delimited by spaces, reverse the order of words. Constraints n ≤ 100,000 where n …
Given a string s and an integer k, return the number of k-length substrings that occur more than once in s. Constraints n ≤ 100,000 where n is the …
Given a list of strings sentence where each sentence is a string with single character, reverse the order of the words in the sentence. You may assume there’s no …
You are given a list of lowercase alphabet strings words where each string is of the same length. Return whether there’s two strings that differ only in one index. …
You are given a string s containing “1”s and “0”s. Return the number of substrings that contain only “1”s. Mod the result by 10 ** 9 + 7. Constraints …