Solution: List Sort Using Trie
Let’s solve the List Sort Using Trie problem.
We'll cover the following
Statement
Given a list of strings as input, implement the sort_list()
function, which sorts the elements of the list in lexicographical order.
Constraints:
words.length
words[i].length
All
words[i]
consist of lowercase English letters
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.