Skip to content

Latest commit

 

History

History

306-missingLetters

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

missingLetters

Interview question of the issue #306 of rendezvous with cassidoo.

The Question

Write a function that takes an array of consecutive, increasing letters as input, and returns any missing letters in the array between the first and last letter.

Example:

> missingLetters(['a','b','c','d','f'])
> ['e']

> missingLetters(['a','b','c','d','e','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z'])
> ['f','g','v']

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!