DEV Community

Discussion on: Finding Max in a Stack

Collapse
 
emlautarom1 profile image
Martín Emanuel

I have the same feeling. The problem solved here doesn't correspond with what I thought was the problem at the beginning of the article.

Collapse
 
racheladaw profile image
Rachel Williams

Hi Martin,

Thank you for reading. I responded to Pavel with some clarification. Let me know if I cleared it up or if you have any additional input.

Thank you!

Thread Thread
 
emlautarom1 profile image
Martín Emanuel

Thanks for the clarification. Indeed, the explanation given by the interviewer was confusing, and sadly most interviewers want the answer they expect or know and don't care too much about how you would solve a similar problem.

Have a nice day!

Thread Thread
 
racheladaw profile image
Rachel Williams

Of course!

I can imagine it is hard to ask technical questions over the phone without being able to write out exactly what you are looking for. Since I come from a non-traditional CS background and knew very little about stacks during this interview, I needed more guidance to understand the problem.

I definitely will be practicing data structures and algorithms in the coming weeks so I can be better prepared next time. It seems like for a lot of algorithms, it is just memorizing the solution that they are looking for, as you have mentioned.

Have a great rest of your week Martín!