Timeline for What is the most frequent word?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jan 31, 2017 at 17:40 | comment | added | mbomb007 |
This is incorrect. The character class \w includes underscores.
|
|
S May 12, 2016 at 7:29 | history | suggested | user53406 | CC BY-SA 3.0 |
removed old link
|
May 12, 2016 at 6:27 | review | Suggested edits | |||
S May 12, 2016 at 7:29 | |||||
May 11, 2016 at 19:32 | history | edited | Wouldn't You Like To Know | CC BY-SA 3.0 |
fixed code to match the requirements
|
May 11, 2016 at 8:20 | comment | added | Wouldn't You Like To Know | Will do soon, when I have time | |
S May 10, 2016 at 18:15 | history | suggested | user53406 | CC BY-SA 3.0 |
added link to ideone code
|
May 10, 2016 at 18:03 | review | Suggested edits | |||
S May 10, 2016 at 18:15 | |||||
May 9, 2016 at 18:02 | comment | added | R. Kap |
Also, this does NOT output nothing if there is no most frequent word. For instance, using the third test case (This sentence has no most frequent word. ) as an example, your function outputs [('This', 1)] , when it should instead be outputting nothing. I could go on and on about more issues, so I would recommend fixing them as soon as you can.
|
|
May 9, 2016 at 17:08 | comment | added | R. Kap |
Welcome to PPCG! Unfortunately, your submission does not satisfy all the requirements of this challenge as, first of all, it's NOT case insensitive. For instance, it will NOT count occurrences of the word That as occurrences of the word that since the former begins with an uppercase T and the latter begins with a lowercase t . Also, this does NOT remove all other forms of punctuation except hyphens (- ) and, optionally, apostrophes (' ) and as a result, this would NOT work for the fourth test case given in the question.
|
|
May 9, 2016 at 13:57 | history | edited | Riker | CC BY-SA 3.0 |
deleted 52 characters in body
|
May 9, 2016 at 13:56 | comment | added | Riker | Hi, and welcome to PPCG! We score code-golf challenges by the number of bytes in the answer. I went ahead and edited it for you with the correct information. | |
May 9, 2016 at 12:52 | review | First posts | |||
May 9, 2016 at 13:57 | |||||
May 9, 2016 at 12:44 | history | answered | Wouldn't You Like To Know | CC BY-SA 3.0 |