Search

1 of 8 0-day streak

Design, test and refine geometrical algorithms

Question 1 of 8

No calculator

The inputs are three positive lengths in the same unit. Output YES exactly when they form a non-degenerate triangle; a straight, zero-area shape must give NO

Input lengths: (8, 15, 23). Algorithm: sort into increasing order x ≤ y ≤ z; if x + y > z output YES, otherwise output NO

(a)1 mark

After sorting, calculate x + y

Format: Exact whole number
(b)1 mark

What output and geometric conclusion follow?