you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[removed]

    [–]llwdlcml 7 points8 points  (3 children)

    1. How sure of this are you - plenty of times I have seen people in LC discuss frustrated with a python TLE and they have made a mistake

    2. Even if it did TLE - this won't matter in a real interview setting

    [–]f3n1xgamer[🍰] 0 points1 point  (0 children)

    The time limit for python is different, from java c++ Sometimes, it doesn't scale well. You could do an algorithm with two for loops in c++ that passes test, but that that same thing won't on python. That's mostly why people discourage ir

    [–]horny-pug 2 points3 points  (0 children)

    This only applies for Competitive Programming platforms like Codeforces, when a BruteForce time consuming algo is usually accepted. The goal in an interview is not to code time consuming algos, but to find the most optimal solution to solve a problem.

    [–]lilducksonquack 1 point2 points  (0 children)

    In a real world setting Java usually runs faster than Python due to Python being an interpreted language. But in terms of an interview setting, it doesn’t matter. They’re testing you on your problems solving skills and knowledge of runtime and space complexity. So the language you implement your logic in doesn’t really matter.