Welcome to LeetCode Discuss.  Please read the FAQ to help yourself making the best use of Discuss.
Ask a Question
Back to Problem

Welcome to LeetCode Discuss.

This is a place to ask questions related to only OJ problems.

Please read the FAQ to help yourself making the best use of Discuss.

Python Implementation got TLE, while Java one passed

0 votes
56 views

My java solution passed, while the python one got TLE Maybe the timeout limit should be raised a little bit?

closed with the note: Resolved.
asked Feb 16 in LRU Cache by alexdiaochina (120 points)
closed Feb 18 by 1337c0d3r

Thanks for reporting. I have fixed this and your Python solution should get Accepted now.

Thanks, it passed! Is it fixed for all problems?

As I am not familiar with python programming, my python codes cannot pass the judge while the implementation in c++ can pass. Could you share your python codes? Thanks!

Yeah sure, here it is https://gist.github.com/alexdiao/9222392


...