DEV Community

Discussion on: Product of array except self, a mind-boggling Google Interview question

Collapse
 
balbuenac profile image
Carlos Balbuena

Cool explanation. But getting this result quickly in an interview is challenging

Collapse
 
akhilpokle profile image
Akhil

yea, I had to spend like 30 mins figuring out which data structure to use, and other random ideas. Some of the questions like these can be solved only if candidate has already seen something similar before.

Collapse
 
balbuenac profile image
Carlos Balbuena

Agree with you. But maybe we need to memorize / learn patterns instead of solutions. Thats what im doing now to prepare for my next interviews

Thread Thread
 
akhilpokle profile image
Akhil

Yea, that's why I am solving as many questions as possible. I would rather solve 400+ questions than depending on my thinking and thought process to come up with a solution within 30 mins.

An upside to this is that I am able to see many techniques that are being applied in real life like how basic graph algorithms work on navigation apps etc.