Solution 1 brute force simulation

  • t-complexity: $O(N^2i * L)$ N is length of words, L is length of words[i]

  • s-complexity: $O(1)$

Last updated