diff --git a/python/6 kyu - Find the missing letter.py b/python/6 kyu - Find the missing letter.py new file mode 100644 index 0000000..269cde6 --- /dev/null +++ b/python/6 kyu - Find the missing letter.py @@ -0,0 +1,7 @@ +def find_missing_letter(cs): + k = ord(cs[0]) + for c in cs[1:]: + t = ord(c) + if t - k != 1: + return chr(k + 1) + k = t