DIY: Verifying an Alien Dictionary
Understand how to check if a list of words is lexicographically sorted according to an alien alphabet order. Explore implementing a function that validates word order given a unique character sequence, enhancing your problem-solving skills for coding interviews.
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 ...