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)
Software Development Interview Questions
37,034 software development interview questions shared by candidates
What do you know about Booking.com?
Is there any mechanism in Java to supply implementation of a method in an interface?
Write a program to find the largest element in array
What is difference between interface and abstract class
Question based on euler totient function implement it?
the first debug question is debug a bubble sort algorithm
cloning linked list with next and random pointers
would like to join immidiately
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
See Interview Questions for Similar Jobs
C DeveloperPython DeveloperJava DeveloperSystems DeveloperSoftware Applications EngineerAtg DeveloperSoftware ProgrammerApplications Support EngineerComputer ScientistMobile EngineerSoftware Test EngineerHadoop DeveloperDevops EngineerSoftware Qa EngineerSoftware EngineerMobile DeveloperSenior DeveloperIt DeveloperTechnical Program Manager