_n = | strs | and m = | strs[i] | and k = | alphabet | = 26_ |
Time complexity: O(n m)
Space complexity: O(n k) ~ O(n)
_n = | strs | and m = | strs[i] | _ |
Time complexity: O(n m)
Space complexity: O(n m)
_n = | strs | and m = | strs[i] | _ |
Time complexity: O(n m log(m))
Space complexity: O(n m)