What does it matter, the length of words or the number of words. It's not clear.


  • 4
    F

    the description in this problem is not clear. Judging from the answer, the the number of words is huge, so the O(n*k^2) is ok. but what if the length of each word is also huge?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.