Problems > Isogram Check

Isogram Check

Difficulty: 800 2000 ms 128 MB

strings

An isogram has no repeating characters. Is S an isogram?

Input: one line with the string S.

Output: YES or NO.

Constraints:

  • 1 ≤ |S| ≤ 104
  • S contains lowercase English letters

Sample Tests

Input 1
uncopyrightable
Output 1
YES
Input 2
hello
Output 2
NO

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.