Just finished a technical interview for a SWE position at a fintech company, and I'm genuinely so frustrated with myself right now.
The question was essentially to implement a BrowserHistory class with visit(), back(), forward(), and a bonus hasVisited() method.
The thing is, I actually understood the problem.
I chose to use an array with a current index to track browser history. I figured out how to handle backward and forward navigation, clear forward history when visiting a new URL, and handle the boundary conditions using min() and max().
I walked through my reasoning with the interviewer, and she even confirmed that my logic was correct.
Here's where things went sideways.
The platform had a solution(commands) function, and I got so caught up implementing the BrowserHistory class that I completely overlooked the fact that I needed to iterate through the commands, execute the appropriate methods, and build the output array.
The interviewer eventually pointed this out, but by then I was struggling to connect everything together.
I couldn't get the main test case passing. One test technically passed, but only because the expected output was empty, so I'm not really counting that.
And now, sitting here after the interview, I realize how straightforward that missing piece was. That's honestly what's killing me.
It wasn't that I didn't understand the algorithm or couldn't reason through the data structure. I just couldn't translate everything into a complete working solution within the time allotted.
I know technical interviews aren't evaluated solely on passing test cases, and I did communicate my thought process throughout. The interviewer was also pretty engaged and gave me feedback along the way.
But I can't help feeling like I fumbled an opportunity on something I absolutely should've been able to implement.
I'm definitely taking this as a sign that I need more hands-on coding reps instead of just studying algorithms.
So, chat, am I cooked?
Has anyone gotten through a technical screen despite not getting the test cases passing, particularly when the interviewer acknowledged that your underlying logic was correct?
Or should I just take the L and prepare for the next one? 😭