DEV Community

Discussion on: And then the interviewer asks, "Can you do this with less code?"

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao • Edited

Great stuff, I might ask the interviewer "what is the reason for it?", "May i know In what area for this piece of code will be used?" to buy yourself time to think and help to understand the question better instead of just doing what you are told?

Collapse
 
michaelsolati profile image
Michael Solati

It's always important to try to extract as much info about the problem you're solving for. I agree with that.