Skip to content

Commit

Permalink
Update solution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 6, 2024
1 parent 5f867a0 commit 8065547
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kyu_4/most_frequently_used_words/solution.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""
Most frequently used words in a text
Most frequently used words in a text.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""


def top_3_words(text: str) -> list:
"""
Top 3 words function.
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.
Expand Down

0 comments on commit 8065547

Please sign in to comment.