Solution: Array Sort Using Trie
Let’s solve the Array Sort Using Trie problem.
We'll cover the following...
Statement
Given an array of strings as input, implement the sortArray()
function, which sorts the elements of the array in lexicographical order.
Constraints:
words.length
words[i].length
All
words[i]
consist of lowercase English letters
Access this course and 1400+ top-rated courses and projects.