I just lost a really good job opportunity because I couldn't reverse a linked list.
Interview Experience
I have solved more than 50 easy to medium problems on leetcode. Reversed a linked list so many times! Yet on a 45 min interview i just got stuck. I almost had it, i just missed one line of code for po
Full Details
I have solved more than 50 easy to medium problems on leetcode. Reversed a linked list so many times! Yet on a 45 min interview i just got stuck. I almost had it, i just missed one line of code for pointing the head node back to nil and it was causing an infinite loop. Right after the interview, i figured it out in just 2 minutes. I feel horrible because I lost such a worthy profile due to such a stupid mistake. 😠I don't want this to happen for my future interviews. What can I do to not get stuck and fail so miserably? Also, is this really a deal breaker considering I have several projects on GitHub and 1 year of professional experience? EDIT: Thank you so much to all for letting me know how I can handle the situation better from now on. Also knowing this is not an uncommon occurrence makes me feel slightly less miserable. Also, I have tried to take all critical comments in a constructive manner. I understand your frustration considering this looks like such a simple problem which should not have been an issue. I strive to improve myself, and both the interview and this discussion have been tremendous lessons for me on how interviews work in general, and also how I can improve my chances here on.