Software Developers Interview Questions

96,331 software developers interview questions shared by candidates

A windowless room has 3 lightbulbs. You are outside the room with 3 switches, each controlling one of the lightbulbs. If you can only enter the room one time, how can you determine which switch controls which lightbulb?
avatar

Software Developer

Interviewed at Bank of America

3.9
Jul 30, 2015

A windowless room has 3 lightbulbs. You are outside the room with 3 switches, each controlling one of the lightbulbs. If you can only enter the room one time, how can you determine which switch controls which lightbulb?

You are given an array of integer numbers (not sorted, possibly negative, with possible repetitions). You are required to write a function that, given a number x, would find whether there are two numbers in the array summing up to this x.
avatar

Software Developer

Interviewed at Varicent

4.3
May 11, 2012

You are given an array of integer numbers (not sorted, possibly negative, with possible repetitions). You are required to write a function that, given a number x, would find whether there are two numbers in the array summing up to this x.

Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subarray [4,−1,2,1] has the largest sum = 6.
avatar

Senior Software Developer

Interviewed at Allstate

3.5
Jul 24, 2016

Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subarray [4,−1,2,1] has the largest sum = 6.

Viewing 401 - 410 interview questions

Glassdoor has 96,331 interview questions and reports from Software developers interviews. Prepare for your interview. Get hired. Love your job.