Technical Leader Interview Questions

20,945 technical leader 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)

tough
avatar

Team Leader

Interviewed at Fidelity Investments

4.1
Jul 27, 2018

tough

Viewing 2061 - 2070 interview questions

Glassdoor has 20,945 interview questions and reports from Technical leader interviews. Prepare for your interview. Get hired. Love your job.