Tag: string algorithm
Teaching Kids Programming: Videos on Data Structures and Algorithms A pangram is a sentence where every letter of the English alphabet appears at least once. Given a string sentence …
Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a list of lowercase alphabet strings words, return the longest common prefix. Example 1 Input words = Output “ant” …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s, remove the vowels ‘a’, ‘e’, ‘i’, ‘o’, and ‘u’ from it, and return the new string. …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string lowercase alphabet s, eliminate consecutive duplicate characters from the string and return it. That is, if a …