Welsh lexicographical sort bloomberg time and space complexity?

859
Nov 30, 2022

https://leetcode.com/discuss/interview-question/682583/bloomberg-phone-order-list-in-welsh-alphabetical-order

What would be the time and space complexity?
Would time be O(NM logN) where M is the number of letters in each word?

Comments (0)