Search
⌘K

Leetcode 953. Verifying an Alien Dictionary

Given a permutation of lowercase letters defining an alien alphabet, verify the words are lexicographically sorted by mapping each character to its rank and comparing adjacent words character-by-character (treating a shorter word that is a prefix as smaller).

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early January, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.