Q: alien dictionary
Anonymous
class Solution: def isAlienSorted(self, words: List[str], order: str) -> bool: words=[[order.index(j) for j in words[i]] for i in range(len(words))] return (words)==(sorted(words))
Check out your Company Bowl for anonymous work chats.