Skip to content

Instantly share code, notes, and snippets.

@garronej
Last active September 24, 2018 15:50
Show Gist options
  • Save garronej/867eecc3775bf9f4e850c88861784c17 to your computer and use it in GitHub Desktop.
Save garronej/867eecc3775bf9f4e850c88861784c17 to your computer and use it in GitHub Desktop.
Write a program that take a text as input and display the top 15
most used words alongside with they repective appearance.
e.g:
Input: "aa aa aa bb cc aa aa cc "
Output:
1. "aa" -> 5
2. "cc" -> 2
3. "bb" -> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment