Developer Interview Questions

269,158 developer interview questions shared by candidates

Asked me to write a throttle function in javascript. Well, essentially...he wanted me to write a function that would call another function, but not if it had been called within a certain set time, which is essentially what a throttle function is. I completely flailed, but it's a useful function to have...probably why they put it in the underscore library which is what I based this answer on.
avatar

Front End Web Developer

Interviewed at Google

4.4
Aug 15, 2014

Asked me to write a throttle function in javascript. Well, essentially...he wanted me to write a function that would call another function, but not if it had been called within a certain set time, which is essentially what a throttle function is. I completely flailed, but it's a useful function to have...probably why they put it in the underscore library which is what I based this answer on.

I happen to be the King and each year I receive 10 gold bars from each of 10 Barons in my Kingdom. My spies inform me that this year, one of the Barons will try to save money by shaving 1 gram from each of his bars. A legitimate bar weighs 100 grams, but there's no way to tell the difference between a legitimate bar and a shaved bar except by weighing. The Puzzle: I have a crusty old coin-operated "speak your weight" machine, and, being a bit cheap, I only want to use it once. How can I tell which Baron has been cheating me with only one weighing?
avatar

Internal Developer

Interviewed at Braintree

3.7
Sep 19, 2011

I happen to be the King and each year I receive 10 gold bars from each of 10 Barons in my Kingdom. My spies inform me that this year, one of the Barons will try to save money by shaving 1 gram from each of his bars. A legitimate bar weighs 100 grams, but there's no way to tell the difference between a legitimate bar and a shaved bar except by weighing. The Puzzle: I have a crusty old coin-operated "speak your weight" machine, and, being a bit cheap, I only want to use it once. How can I tell which Baron has been cheating me with only one weighing?

Viewing 1161 - 1170 interview questions

Glassdoor has 269,158 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.