[Java Algorithm] 프로그래머스 Lv.0 _ 간단한 논리 연산
·
Algorithm Study
[문제]boolean 변수 x1, x2, x3, x4가 매개변수로 주어질 때, 다음의 식의 true/false를 return 하는 solution 함수를 작성해 주세요.- (x1 ∨ x2) ∧ (x3 ∨ x4) [Algorithm]논리 연산자에 대해 알고 있으면 아주 쉬운 문제 .. [Code]class Solution { public boolean solution(boolean x1, boolean x2, boolean x3, boolean x4) { return (x1 || x2) && (x3 || x4); }} [+ Plus]* 논리 연산자와 비트 연산자https://velog.io/@yeoonnii/JAVA-%EB%85%BC%EB%A6%AC%EC%97%B0%EC%82%B0%..