Software Development Interview Questions

37,034 software development interview questions shared by candidates

Identify whether four sides (given by four integers) can form a square, a rectangle or neither. Input: Each line of the input describes a single polygon, and contains four space-separated integers, which represent the length of the sides of the polygon. The input lines will follow the 'A B C D' order as in the following representation: A ------| | D B | c ------| Output: A single line which contains 3 space-separated integers, representing the number of squares, number of rectangles and number of other polygons with 4 sides. Note that squares shouldn't be counted as rectangles. Invalid polygons should also be counted as 'other polygons'. Constraints The four integers representing the sides will be such that: -2000 <= X <= 2000 (Where X represents the integer)
avatar

Software Development Team Leader

Interviewed at Booking.com

4.1
Oct 17, 2017

Identify whether four sides (given by four integers) can form a square, a rectangle or neither. Input: Each line of the input describes a single polygon, and contains four space-separated integers, which represent the length of the sides of the polygon. The input lines will follow the 'A B C D' order as in the following representation: A ------| | D B | c ------| Output: A single line which contains 3 space-separated integers, representing the number of squares, number of rectangles and number of other polygons with 4 sides. Note that squares shouldn't be counted as rectangles. Invalid polygons should also be counted as 'other polygons'. Constraints The four integers representing the sides will be such that: -2000 <= X <= 2000 (Where X represents the integer)

1) How to display unique ADs based For the non-logged in User. 2) There are photos in a line and each photo is at some distance from each other.And One Guard can guard upto 10 km distance.FInd out the number of guards needed.
avatar

Software Development Engineer

Interviewed at BlackBuck

3.3
Jun 3, 2016

1) How to display unique ADs based For the non-logged in User. 2) There are photos in a line and each photo is at some distance from each other.And One Guard can guard upto 10 km distance.FInd out the number of guards needed.

Viewing 3521 - 3530 interview questions

Glassdoor has 37,034 interview questions and reports from Software development interviews. Prepare for your interview. Get hired. Love your job.