DIY: Verifying an Alien Dictionary
Understand how to determine if a list of words is ordered according to a provided alien alphabet. Learn to implement a function that checks lexicographical sorting based on a custom character sequence, enhancing your ability to solve unique string sorting problems in 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 ...