Dear all,
Has anyone run into a situation where they came up with an optimization over a bruteforce during an interview, and yet stuck with a Time Limit Exceeded (TLE)? I am curious since a lot of times I arrive at the correct formulation of the problem and the solution, but am missing that particular search pruning that takes the implemented code into the land of success.
How do interviewees handle this? Have you run into this?