Output limit exceeded


  • 1
    P

    My code gets "Output limit exceeded". It definitely does not happen for every test case, as I have tested it on my computer. Is there a way to get a test case for which this happens?


  • 0
    S

    In general, output limit exceeded is your code generate too much output for test case. You may detail your question, like paste your code with some key comment and give the brief algorithm, others can help you a lot depend that.


  • 1
    S

    I experienced the same problem, it turned out that this problem requires the output of ArrayList<String> containing only anagram words, instead of "sort the whole String[] according in an anagram order".


  • 0
    P

    I still don't get it. I don't sort anything, I am indeed returning a list of JUST anagram words.


  • 0
    C

    Does he mean the only needed ouput is string which has anagrams????


  • 0
    C

    Oh yea. The output is only strings which have anagrams. That's it. I've just made modification and pass the test


  • 0
    L

    Hi Chris, could you give me an example?
    If the input is: [dog, god], the output should be [dog, god], right?

    ==

    NVM, I found a bug in my code. Thx.


Log in to reply
 

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