Engineers Interview Questions

841,079 engineers interview questions shared by candidates

Assume that you are given the head and tail pointers of a doubly linked list where each node can also have a single child pointer to another similar doubly linked list. There are no cycles in this structure outside of the traditional double links. Write a procedure in C++ that flattens this structure into a single list.

Assume that you are given the head and tail pointers of a doubly linked list where each node can also have a single child pointer to another similar doubly linked list. There are no cycles in this structure outside of the traditional double links. Write a procedure in C++ that flattens this structure into a single list.

You are outside a room. Inside the room there are two light bulbs. One light bulb is on all the time, the other light bulb only turns on when you open the door. How do you determine which light bulb is on all the time?
avatar

QA Engineer

Interviewed at Palantir Technologies

3.7
Mar 1, 2011

You are outside a room. Inside the room there are two light bulbs. One light bulb is on all the time, the other light bulb only turns on when you open the door. How do you determine which light bulb is on all the time?

Viewing 431 - 440 interview questions

Glassdoor has 841,079 interview questions and reports from Engineers interviews. Prepare for your interview. Get hired. Love your job.