DIY: Verifying an Alien Dictionary
Understand how to verify if a list of words is sorted according to a given alien alphabet order. Explore solving this problem in Swift by comparing word orders based on a custom character sequence, a common challenge in coding interviews related to string manipulation and sorting.
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 an array of words written in the alien ...