Hey folks,
I just finished Alex's Master The Data Structure and Algorithms Interview course. One question stayed with me when Alex went into how important it is for discussion on edge cases and alternate approaches in the Getting To The Next Level section. If we know that the interview will last for another x minutes when we get the coding question, which one of these options should we take?
1. Completely go berserk with edge cases and alternate solutions that you can potentially think about - and have an engaging discussion with your interviewer about the tradeoffs associated with each of the approaches, to the extent that, the interviewer does not care to see you write code (they conclude you're a DSA ninja)
2. Just take the x minutes to limit your scope, write your plan, and write the code.
I think option 2 is more prudent if x <= 25 minutes but otherwise, I will go with option 1. Having said that, I know Alex talks about folks who did this when he was the interviewer. Was this for x > 25-minute durations too?
Thanks!