Interview Question

Software Engineer New Grad Interview

-Toronto, ON

Google

Write a function debounce(fn, timeout) which accepts a function and timeout as inputs and returns a function which will on allow fn to run after timeout ms.

AnswerAdd Tags

Interview Answer

1 Answer

0

The interviewer told me to use my answer from the previous question (which was wrong) to answer this one. I had some difficulty coming up with an answer and moved on once I got stuck.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.