Count Triple

Asked at ZipRecruiter · Coding Questions · Difficulty: Easy

You are given a string `sentence` filled with words. A "triple-letter" word is one in which at least one letter appears **three or more times**, where letters are compared case-insensitively (uppercase and lowercase count as the same letter). A word is a sequence of English letters surrounded by whitespace. Count all such words in the sentence.

Loading the problem…