t-complexity: $O(N^2i * L)$ N is length of words, L is length of words[i]
s-complexity: $O(1)$
Last updated 3 years ago