• Tests
  • Most frequently used words in a text (Python)
Test

Most frequently used words in a text (Python)

The respondent writes a function that, given a string of text, returns an array of the top-3 most occurring words.

Time limit / average

90 min. / 30 min.

Price

2 credits

Test description

The respondent writes a function that, given a string of text (possibly with punctuation and line-breaks), returns an array of the top-3 most occurring words, in descending order of the number of occurrences. Solving this problem proves the respondent's ability to use regular expressions as well as working with arrays/lists. This problem is considered to have a medium difficulty. The respondent has to have a fair knowledge of the programming language and has be able to use it to solve complex problems.