tabruhn / get-sort-order

Temporary challenge repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

npm i

Test

npm test

Challenge

Take Home Challenge:

You are given a list of words sorted in alphabetical order. The only issue is that this alphabet isn’t English. Can you determine the ordering of the alphabet?

Note that you can assume the list of words will have enough information to derive the complete order of the alphabet.

Input:

‘bca’

‘aaa’

‘acb’

Output:

[‘b’, ‘a’, ‘c’]  

Please include Test Cases

About

Temporary challenge repository.


Languages

Language:JavaScript 100.0%