For people who have solved more questions. Did this happen anytime that you hear an interviewer walk you through the question and you already start to think about the most optimum solution because the question is similar to what you have solved? And you start to solve the question from memory (because this solution is optimum) instead of solving it fresh (or bruteforce/less optimum) and mid way you are stuck... this happened to me when I was redoing few questions.
What is the solution for this? like do we pre-decide that if this question shows up in the interview - I at least start from less optimal but solvable?
Thanks