Your question is Triangle Validity Verification. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Photon's layout validation service receives three arrays containing corresponding side lengths. For each index, determine whether the three lengths can form a valid non-degenerate triangle.
Return a string array containing "YES" for valid triangles and "NO" otherwise, preserving the input order.
Implement verify_triangles(a, b, c):
a, b, and c of equal length. For index i, the candidate sides are a[i], b[i], and c[i].i is "YES" if the three sides form a valid triangle, otherwise "NO".A valid triangle must have three positive side lengths, and the sum of any two sides must be strictly greater than the third side.
def verify_triangles(a, b, c):