Find the missing letter

User
Posted by anthonyo
1 year ago in Q/A Section
122 views
3 replies
User
anthonyo
Posted 1 year ago

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.

Example:

['a','b','c','d','f'] -> 'e'
['O','Q','R','S'] -> 'P'
(Use the English alphabet with 26 letters!)

Image preview

Replies (2)

Please login to post a reply.

Thread Actions
Related Tags