Software Developers Interview Questions

96,343 software developers interview questions shared by candidates

Let’s say that you have 25 horses, and you want to pick the fastest 3 horses out of those 25. In each race, only 5 horses can run at the same time because there are only 5 tracks. What is the minimum number of races required to find the 3 fastest horses without using a stopwatch?
avatar

Software Developer

Interviewed at Algoworks

3.9
Jun 8, 2016

Let’s say that you have 25 horses, and you want to pick the fastest 3 horses out of those 25. In each race, only 5 horses can run at the same time because there are only 5 tracks. What is the minimum number of races required to find the 3 fastest horses without using a stopwatch?

Favorite project (worked on a team, and was interesting to me) technical questions: 1- have sorted array with empty places at end, want to add element, what to use? 2- have sorted array with empty places at end, want to add another sorted array to it, write the code in C++.
avatar

Software Developer

Interviewed at Microsoft

4
Nov 9, 2017

Favorite project (worked on a team, and was interesting to me) technical questions: 1- have sorted array with empty places at end, want to add element, what to use? 2- have sorted array with empty places at end, want to add another sorted array to it, write the code in C++.

Suppose a basketball match is going on and apart from conventional manner to record that game i.e. video recording, I want to record that game in a structure, so which structure u will use and with which fields, to record that game so that whenever i go through that structure i'll get the whole description of the match event-wise i.e. what happened at which time.
avatar

Software Developer

Interviewed at Dell Technologies

3.7
Aug 19, 2012

Suppose a basketball match is going on and apart from conventional manner to record that game i.e. video recording, I want to record that game in a structure, so which structure u will use and with which fields, to record that game so that whenever i go through that structure i'll get the whole description of the match event-wise i.e. what happened at which time.

Identify whether there exists a pair of numbers in an array such that their sum is equal to N Input: The first line contains one integer N, which is the sum we are trying to find; The second line contains one integer M, which is length of the array; This is followeb by M lines each containing one element of the array; Output: Output 1 if there exists a pair of numbers in the array such that their sum equals N. If such a pair does not exist, output 0. Note: The array must be sorted.
avatar

Software Developer

Interviewed at Booking.com

4.1
Jul 26, 2016

Identify whether there exists a pair of numbers in an array such that their sum is equal to N Input: The first line contains one integer N, which is the sum we are trying to find; The second line contains one integer M, which is length of the array; This is followeb by M lines each containing one element of the array; Output: Output 1 if there exists a pair of numbers in the array such that their sum equals N. If such a pair does not exist, output 0. Note: The array must be sorted.

Viewing 561 - 570 interview questions

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