Search⌘ K

DIY: Verifying an Alien Dictionary

Understand how to verify if a list of words is sorted based on an alien language's letter order. This lesson helps you implement a function to compare words lexicographically using a given alphabet permutation, a skill useful for encryption and data validation problems in cyber security.

Problem statement

In this coding exercise, you are given a list of words written in an alien language. Surprisingly, the aliens also use lowercase English letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters of the English language.

Given a vector of words written in the alien ...