Grokking SQL for Tech Interviews
Vote

0% completed

​

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.

Problem Definition

Report for every three line segments whether they can form a triangle.

Return the result table in any order.

Example

Output

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content