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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

    So I copied and pasted the TC into a custom test case, and started to think about what I could tweak. However, I ended up accidentally hitting Run Code, but instead of getting a Time Limit Exceeded result, it passed:

    0_1479079812693_upload-4af9e94c-2e53-4915-acf6-782780c7bf8b

    Is this supposed to happen and I just need to make my code more efficient, or is this a bug?
    0_1479079956817_upload-1ef15826-d6e6-4bde-9c06-eb597c5c8d0e


Log in to reply
 

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