← Back to challenges

What's the Missing Letter?

PythonHardloopsstringsvalidation

Instructions

Given a string of letters in the English alphabet, return the letter that's missing from the string. The missing letter will make the string be in alphabetical order (from A to Z).

If there are no missing letters in the string, return "No Missing Letter".

Examples

missing_letter("abdefg") ➞ "c"

missing_letter("mnopqs") ➞ "r"

missing_letter("tuvxyz") ➞ "w"

missing_letter("ghijklmno") ➞ "No Missing Letter"

Notes

The given string will never have more than one missing letter.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.