2 ms·
For a new problem, success is any solution that passes all test cases and implemented within an acceptable time frame. I personally think leetcode focuses a bi
by shahbaby 7y ago
For a new problem, success is any solution that passes all test cases and implemented within an acceptable time frame.
I personally think leetcode focuses a bit too much on runtime. In a real interview, the clock is ticking down and the stakes are high. Most people won't pass all test cases. Sometimes it's not even necessary to pass them all to make it to the next round.
It's much easier to rank candidates
by how many test cases they passed than by their algorithm's efficiency.
So in a real interview:
#passedTCs > algorithm efficiency