Verifying an Alien Dictionary
CodingPhone ScreenSoftware EngineerReported Sep, 2025
Examples
Example 1:
Input: words = ["hello","leetcode"], order = "hlabcdefgijkmnopqrstuvwxyz"
Output: true
Example 2:
Input: words = ["word","world","row"], order = "worldabcefghijkmnpqstuvxyz"
Output: false