Files
freeCodeCamp/curriculum/challenges/german/10-coding-interview-prep/project-euler/problem-209-circular-logic.md
2022-10-18 12:59:49 +05:30

1.1 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f43e1000cf542c50ff4f Problem 209: Zirkuläre Logik 1 301850 problem-209-circular-logic

--description--

A $k$-input binary truth table is a map from k input bits (binary digits, 0 [false] or 1 [true]) to 1 output bit. For example, the $2$-input binary truth tables for the logical AND and XOR functions are:

x y x AND y
0 0 0
0 1 0
1 0 0
1 1 1
x y x XOR y
0 0 0
0 1 1
1 0 1
1 1 0

How many $6$-input binary truth tables, τ, satisfy the formula

τ(a, b, c, d, e, f) \\; AND \\; τ(b, c, d, e, f, a \\; XOR \\; (b \\; AND \\; c)) = 0

für alle $6$-bit Eingaben (a, b, c, d, e, f)?

--hints--

circularLogic() sollte 15964587728784 zurückgeben.

assert.strictEqual(circularLogic(), 15964587728784);

--seed--

--seed-contents--

function circularLogic() {

  return true;
}

circularLogic();

--solutions--

// solution required