Microsoft Interview Question
1,272 Interview Reviews |
Back to all Microsoft Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer In Test (SDET) at Microsoft:
given three integers, determine whether they can form a triangle? example 1: 3, 4, 5 --> yes example 1: 3, 4, 15 --> no
See more for this Microsoft Software Development Engineer In Test (SDET) Interview
Helpful Question?
Yes |
No
Inappropriate?



0 of 0 people found this helpful
by Tim:
bool can_form_triangle(int a, int b, int c)
{
if (a + b <= c)
{
return false;
}
if (a + c <= b)
{
return false;
}
if (b + c <= a)
{
return false;
}
return true;
}