From 3b816023a6f124486193c6856211c5e4d296a103 Mon Sep 17 00:00:00 2001 From: daggerron Date: Tue, 3 Aug 2021 14:08:44 +0200 Subject: [PATCH] formating --- subjects/maxwordcountn/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/maxwordcountn/README.md b/subjects/maxwordcountn/README.md index 939f6c9ba..184b8d6f2 100644 --- a/subjects/maxwordcountn/README.md +++ b/subjects/maxwordcountn/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function `MaxWordCountN` that will return a `map` of the `n` words that occurs the most in a string `text`. A word is defined as separated by spaces. The map you should return will have the word as key and the number of occurences of this word as value. +Write a function `MaxWordCountN` that will return a `map` of the `n` words that occurs the most in a string `text`. A word is defined as separated by spaces. The `map` you should return will have the word as key and the number of occurences of this word as value. If two words have the same number of occurences, the one with the lowest ASCII value should be prioritized. ### Expected function