We're a place where coders share, stay up-to-date and grow their careers.
Here is the simple solution in Python:
def solve(st): arr = list(st) arr.sort() letters = 'abcdefghijklmnopqrstuvwxyz' return letters.count(''.join(arr)) >= 1
Here is the simple solution in Python: