DIY: Verifying an Alien Dictionary
Explore how to implement a function that verifies whether a list of words is sorted lexicographically in an alien language using a custom alphabet order. Understand the problem constraints and develop logic to compare the words with respect to the given alien alphabet, preparing you for related coding interview questions.
We'll cover the following...
We'll cover the following...
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 ...