Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The condition for a valid triangle is that for any two sides, the sum of their lengths must be greater than the third side.
Simply count the number of unique edge lengths after checking it’s a valid triangle.
Solve with full IDE support and test cases