Booking.com Software Engineer Interview
Round1 - Hacker Rank Test
Q1 Triangles
Given 3 integers that represent edge lengths, identify if they could form a triangle or not.
A triangle could be formed if sum of any two edges is greater than the length of the third edge.
The output should be as below
0 if No triangle could be formed or input is invalid
1 if An equilateral triangle could be formed
2 if A triangle that is not equilateral could be formed.