As I'm practicing on LC, when I come up with a solution and start coding it, I'm trying to code things fast and finding I'm making some mistakes along the way. I'm very good at not finding the mistakes :) They tend to be simple things that I missed but I sometimes resort to using printfs to debug. Is that bad?
Do you believe its appropriate during the interview to debug your code live if the solution isn't working? i.e. adding print statements. Or does the interviewer expect you to see your mistakes without having to add any print statements?
I suppose I expect the latter....but I'm just curious to know everyone's thoughts.