From 6d19fec884e1aaf0e40b4f6140eddbbd84194456 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Mon, 27 Sep 2021 00:11:25 +0900 Subject: [PATCH] fix(curriculum): typo in word-frequency.md (#43571) occurences -> occurrences --- .../10-coding-interview-prep/rosetta-code/word-frequency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/word-frequency.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/word-frequency.md index 70d2d054dc..760128e0a4 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/word-frequency.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/word-frequency.md @@ -12,7 +12,7 @@ Given a text string and an integer n, return the n most common words in the file # --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.