Developer Interview Questions

268,884 developer interview questions shared by candidates

You have a function f(p) that returns an array of linked pages e.g f(homepage) = {page1, page2, page3}. Or f(page1) = {page4, page5}. If there is no linked pages function will return null. And we say one site is a good site if we can get to any page of that site in a less than 6 clicks. The task was to write a function that will check is it a good site or not using f(p).
avatar

Software Developer

Interviewed at Booking.com

4.1
Dec 9, 2017

You have a function f(p) that returns an array of linked pages e.g f(homepage) = {page1, page2, page3}. Or f(page1) = {page4, page5}. If there is no linked pages function will return null. And we say one site is a good site if we can get to any page of that site in a less than 6 clicks. The task was to write a function that will check is it a good site or not using f(p).

This test involved writing a zoo simulator whereby a “zoo” contains a certain number of different animals whose health decreases by a random percentage every 20 seconds. The animals can be fed, which increases their health by a random percentage, based on various other conditions. It’s a fairly involved exercise, and not exactly quick to complete.
avatar

Developer

Interviewed at Dyball Associates

Oct 26, 2019

This test involved writing a zoo simulator whereby a “zoo” contains a certain number of different animals whose health decreases by a random percentage every 20 seconds. The animals can be fed, which increases their health by a random percentage, based on various other conditions. It’s a fairly involved exercise, and not exactly quick to complete.

Viewing 281 - 290 interview questions

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