728x90
https://school.programmers.co.kr/learn/courses/30/lessons/301647
프로그래머스
SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프
programmers.co.kr
select my.id as id, my.genotype as genotype, p.genotype as parent_genotype
from ecoli_data as my
left join ecoli_data as p
on my.parent_id = p.id
where bin(my.genotype & p.genotype) = bin(p.genotype)
order by my.id;728x90
'Problem Solving > Programmers' 카테고리의 다른 글
| [프로그래머스, 76502] 괄호 회전하기 (java) (0) | 2025.12.12 |
|---|---|
| [프로그래머스, 131701] 연속 부분 수열 합의 개수 (java) (0) | 2025.12.11 |
| [프로그래머스, 389480] 완전범죄 (java) (0) | 2025.12.07 |
| [프로그래머스, 67260] [카카오 인턴] 동굴 탐험 (java) (3) | 2025.08.10 |
| [프로그래머스, 49189] 가장 먼 노드 (java) (1) | 2025.08.09 |