Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.05 KB

Missing Letters

Task

Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.

You will always get an valid array. And it will be always exactly one letter be missing. The length of the array will always be at least 2. The array will always contain letters in only one case.

Acceptance Criteria

  • Must return the missing letter in a string
  • Must return letter in case (uppercase/lowercase) that the array was

Examples

["a","b","c","d","f"] -> "e"
["O","Q","R","S"] -> "P"

Top Tips

To help get you started, a skeleton project has been setup with the necessary dependencies.

  • Run the following command before starting:
npm install
  • Be sure to check that everything is working before you write any code by running this command:
npm test

If all is well, you should see something similar to this output:

  • Make sure your code is tested! To this end, Jest has been installed to run your unit tests.