Javascript Design Patterns: Strategy
For a quick assignment I was asked to write the following program: In the language of your choosing build an application that, given an English language document as input, builds a data structure capturing the count of each word in the document. Bonus: Create an inverted index as well: a mapping of the words to absolute positions in the document…