Sha256: c1e2d8eba1fc9274d42e068bfb92a855e9a78297eaf67d0193a2c19057421aee
Contents?: true
Size: 1.38 KB
Versions: 50
Compression:
Stored size: 1.38 KB
Contents
# Word Count Given a phrase, count the occurrences of each word in that phrase. For example for the input `"olly olly in come free"` ```plain olly: 2 in: 1 come: 1 free: 1 ``` ## Getting Started Make sure you have read the [C page](http://exercism.io/languages/c) on the Exercism site. This covers the basic information on setting up the development environment expected by the exercises. ## Passing the Tests Get the first test compiling, linking and passing by following the [three rules of test-driven development][3-tdd-rules]. The included makefile can be used to create and run the tests using the `test` task. make test Create just the functions you need to satisfy any compiler errors and get the test to fail. Then write just enough code to get the test to pass. Once you've done that, move onto the next test. [3-tdd-rules]: http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd As you progress through the tests, take the time to refactor your implementation for readability and expressiveness and then go on to the next test. Try to use standard C99 facilities in preference to writing your own low-level algorithms or facilities by hand. ## Source This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour. ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
50 entries across 50 versions & 1 rubygems