Python3 Runtime Issues

Anonymous User
57
May 31, 2020

Recently I switched over to Python3 from Java in order to prepare for the fall recruiting season since I heard great benefits to switching over to Python due to worrying less about syntax and more about solving the problems.

In some problems, even when I have the most optimal solution (I verified with the discussion answers), I still sometimes don't beat 100% of python3 runtime submissions as compared to when I do the same thing with Java and it always beats 95%+.

Sometimes when I submit the same code, the runtime also differs by 20+ ms. Is there a big concern as long as I'm achieving the most optimal big O? I'm also afraid if I get sent a coding challenge to do and even if I achieve the best runtime, it'll still be slow compared to other submissions as it says for me on Leetcode

Comments (0)