Skip to content

Commit

Permalink
Create 6 kyu - Find the missing letter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
freedan42x authored Sep 27, 2022
1 parent 93417c6 commit f73bc83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/6 kyu - Find the missing letter.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f73bc83

Please sign in to comment.