Solution: Array Sort Using Trie

Let’s solve the Array Sort Using Trie problem.

Statement

Given an array of strings as input, implement the  sortArray() function, which sorts the elements of the array in lexicographical order.

Constraints:

  • 00\leq words.length 103\leq 10^3 ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.