fix(curriculum): typo in word-frequency.md (#43571)

occurences -> occurrences
This commit is contained in:
Ikko Ashimine
2021-09-27 00:11:25 +09:00
committed by GitHub
parent bf83352e66
commit 6d19fec884

View File

@ -12,7 +12,7 @@ Given a text string and an integer n, return the n most common words in the file
# --instructions-- # --instructions--
Write a function to count the occurrences of each word and return the n most commons words along with the number of their occurences in decreasing frequency. Write a function to count the occurrences of each word and return the n most commons words along with the number of their occurrences in decreasing frequency.
The function should return a 2D array with each of the elements in the following form: `[word, freq]`. `word` should be the lowercase version of the word and `freq` the number denoting the count. The function should return a 2D array with each of the elements in the following form: `[word, freq]`. `word` should be the lowercase version of the word and `freq` the number denoting the count.