Back to course home
0% completed
Vote For New Content
3. Triangle Judgement
Problem
Table: Triangle
+-------------+------+
| Column Name | Type |
+-------------+------+
| x | int |
| y | int |
| z | int |
+-------------+------+
In SQL, (x, y, z) is the primary key column for this table.
Each row of this table contains the lengths of three line segments.
Report for every three line segments whether they can form a triangle.
Return the result table in any order.
Example
Output
Try it YourSelf
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page