is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
check for the 3 conditions to determine the triangle
- VVG August 27, 20101) if (a+b<c||a+c<b||b+c<a||a+b==c||a+c==b||b+c==a)
not a triangle
2) if (a=b=c)
equilateral
3) if(a==b||b==c||a==c)
isosceles
else
scalene triangle
Test Cases
Test Input Expected Result
- ve element (-4,2,3) Error!
sum of 2 = to the 3rd (3,4,7) Error!
sum of 2 less than third (3,3,9) Error definitely
all three same (5,5,5) Equilateral
special characters (*,5,5) Error
Two sides equal (4,5,5) Isosceles
More than 3 elements (3,4,5,6) Error
No sides Matching (3,4,5) Scalene