File tree 2 files changed +11
-0
lines changed 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -567,6 +567,7 @@ Your ideas/fixes/algorithms are more than welcome!
567
567
| 619| [ Biggest Single Number] ( https://leetcode.com/problems/biggest-single-number/ ) | [ Solution] ( ../master/database/_619.sql ) | | | Easy |
568
568
| 613| [ Shortest Distance in a Line] ( https://leetcode.com/problems/shortest-distance-in-a-line/ ) | [ Solution] ( ../master/database/_613.sql ) | || Easy|
569
569
| 612| [ Shortest Distance in a Plane] ( https://leetcode.com/problems/shortest-distance-in-a-plane/ ) | [ Solution] ( ../master/database/_612.sql ) | || Medium|
570
+ | 610| [ Triangle Judgement] ( https://leetcode.com/problems/triangle-judgement/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_610.java ) | | | Easy |
570
571
| 607| [ Sales Person] ( https://leetcode.com/problems/sales-person/ ) | [ Solution] ( ../master/database/_607.sql ) | | | Easy |
571
572
| 596| [ Classes More Than 5 Students] ( https://leetcode.com/problems/classes-more-than-5-students/ ) | [ Solution] ( ../master/database/_596.sql ) | || Easy |
572
573
| 595| [ Big Countries] ( https://leetcode.com/problems/big-countries/ ) | [ Solution] ( ../master/database/_595.sql ) | O(n) | O(1) | Easy |
Original file line number Diff line number Diff line change
1
+ -- In Math, three segments can form a triangle only if the sum of any of the two segments is larger than the third one.
2
+
3
+ select x, y, z,
4
+ case when x+ y <= z or
5
+ x+ z <= y or
6
+ y+ z <= x
7
+ then " No"
8
+ else " Yes"
9
+ end as " triangle"
10
+ from triangle;
You can’t perform that action at this time.
0 commit comments