Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 1.1 KB

71-consecutive-letters.md

File metadata and controls

12 lines (11 loc) · 1.1 KB

Problem:

In this Kata, we will check if a string contains consecutive letters as they appear in the English alphabet and if each letter occurs only once.

For example: 
solve("abc") = True, because it contains a,b,c
solve("abd") = False, because a, b, d are not consecutive.
solve("dabc") = True, because it contains a, b, c, d
solve("abbc") = False, because b does not occur once.
solve("v") = True

All inputs will be lowercase letters.

More examples in test cases. Good luck!

Solution