Skip to content

Instantly share code, notes, and snippets.

@daveharris
Last active May 11, 2020 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveharris/1e1c2715f7ba563faef23dfcae4a3935 to your computer and use it in GitHub Desktop.
Save daveharris/1e1c2715f7ba563faef23dfcae4a3935 to your computer and use it in GitHub Desktop.
Coding Challenge

In the programming language of your choice, write a program that accepts an array of words, and calculates the number of vowels. For example, Given:

['hello', 'world']

Produces:

a: 0
e: 1
i: 0
o: 2
u: 0

Imagine you have a web application with authors, posts and comments. You are wanting to a manual approval step before a Comment is publically visible. When a comment is made, an email is to to be sent to the author with the comment and link which will approve the comment when clicked. Once the link is clicked, the comment is then visible

Detail the steps which you would take to achieve this. For the purpose of this exercise, you are can assume that there are no automated tests to upate. I have added the first step for reference:

  1. Add boolean "status" attribute to Comment, with default value "unapproved"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment