The NAND operation (also known as a Sheffer stroke) is an operation on two logical values. It produces true, if - and only if - at least one of the operands is false.
NAND 연산 ( Sheffer stroke으로도 알려진 )은 두 논리값에 대한 연산이다. 이 연산은 피연산자중 하나 이상의 false가 있을 경우, true를 도출한다.
Given two boolean values a and b, return the value of A NAND B.
주어진 두개의 논리값 a와 b를 이용하여, A NAND B의 값을 반환하여라.
Example
● For a = true and b = true, the output should be false.
● For a = false and b = true, the output should be true.
[input] boolean a
[input] boolean b
[output] boolean
필요 이해 사항
○NAND / Sheffer stroke
Result = NOT( A AND B )
참조 네이버 지식백과 Sheffer stroke
http://terms.naver.com/entry.nhn?docId=837007&cid=50376&categoryId=50376
영어
NAND : 역논리, 부정곱
Sheffer stroke : 셰퍼 스트로크
NAND operation : 부정 논리곱 연산
operand : 피연산자/함수
'CodeFights[JavaScript]' 카테고리의 다른 글
CodeFights[JavaScript] 005 (0) | 2015.08.05 |
---|---|
CodeFights[JavaScript] 004 (0) | 2015.08.05 |
CodeFights[JavaScript] 003 (0) | 2015.07.30 |
CodeFights[JavaScript] 002 (0) | 2015.07.29 |
CodeFights[JavaScript] 001 (0) | 2015.07.28 |