hyezdata 님의 블로그

Triangle Judgement 본문

코딩테스트

Triangle Judgement

hyezdata 2026. 5. 25. 15:52
# 삼각형을 만드는 여부
select x, y, z,
    case when (x + y > z) and (x + z > y) and (y + z > x) then 'Yes'
        else 'No' 
    end as 'triangle'
from triangle

 

 

 

Triangle Judgement - LeetCode

Can you solve this real interview question? Triangle Judgement - Table: Triangle +-------------+------+ | Column Name | Type | +-------------+------+ | x | int | | y | int | | z | int | +-------------+------+ In SQL, (x, y, z) is the primary key column for

leetcode.com

 

728x90
반응형

'코딩테스트' 카테고리의 다른 글

Exchange Seats  (0) 2026.05.30
Biggest Single Number  (0) 2026.05.25
Sales Person  (0) 2026.05.25
Customer Placing the Largest Number of Orders  (0) 2026.05.22
Game Play Analysis IV  (0) 2026.05.18