A typing school records each student's practice drill as a single line of lowercase words separated by single spaces. An instructor calls a drill line a complete alphabet drill if, once the spaces are ignored, every one of the 26 lowercase English letters appears somewhere in the line at least once. Given one drill line, determine whether it is a complete alphabet drill.
A single line containing the drill line: lowercase English letters and single spaces only, with no leading or trailing spaces and no two consecutive spaces.
Print true if the drill line contains every letter from a to z at least once, otherwise print false.
1 <= length of the line <= 1000a-z) and the space character.Example 1
Input
thequickbrownfoxjumpsoverthelazydog
Expected
true
Explanation
This single word is a classic sentence built to use every letter at least once; checking it letter by letter confirms all 26 letters a-z appear, so the drill is complete and the output is true.
Example 2
Input
practice makes perfect
Expected
false
Explanation
This line only uses a small subset of the alphabet (letters like b, g, j, q, w, x, y, z never appear), so it is not a complete alphabet drill and the output is false.
Ready to solve this?
Sign in to open the editor, run your code against the sample tests, and submit against the full test suite.
Sign in to solve →