Back to problems

Counting Words in a Text

Algorithm · Squarepoint · Easy

You are developing a text-analysis utility that extracts the most common words from a given string text. The string consists solely of English letters and spaces, with words delimited by spaces. Perform a case‑insensitive frequency count, then select the words belonging to the groups with the largest counts, including their frequencies. Follow these rules to build the answer: Process groups in descending order of frequency (from most frequent to least frequent). Inside a…

Checking your access…