I got "Time Limit Exceeded", does the order of the result matter?


  • 0
    A

    I ran my solution on my laptop, it takes only ~25ms. But I still got "Time Limit Exceeded". does the order of the result matter?
    java solution with Trie. O(n*k^2), n is the array length, k is word length.


Log in to reply
 

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