Table of content
What is this?
The rules of the game are explained in my original post.
5th Challenge
Challenge
Today I want something simple. Count the number of valid English sentences in a string.
A sentence, for the sake of this challenge, is defined as follows:
- a String starting with an Uppercase letter and
- ending in a question, exclamation or period
Solution
OK this was very easy
Find the source on github and see it on rust playground. Note it seems to be not working on playground, not sure why as it works locally.