Platform
Resources
Pricing
Sign in
Get started
Philippe Rigovanov
math & informatics teacher
Workspace
Fork
Public
Informatics
By
Philippe Rigovanov
Edited
Dec 31, 2022
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function
f
(
x
,
y
,
z
,
w
)
{
return
!
!
x
&&
(
(
!
!
y
&&
!
!
z
)
||
(
!
!
z
&&
!
!
w
)
||
(
!
!
y
&&
!
w
)
)
;
}
Insert cell
function
solve
(
)
{
const
result
=
[
]
;
for
(
let
x
of
[
0
,
1
]
)
{
for
(
let
y
of
[
0
,
1
]
)
{
for
(
let
z
of
[
0
,
1
]
)
{
for
(
let
w
of
[
0
,
1
]
)
{
if
(
f
(
x
,
y
,
z
,
w
)
)
{
result
.
push
(
[
+
x
,
+
y
,
+
z
,
+
w
]
)
;
}
}
}
}
}
return
result
;
}
Insert cell
solve
(
f
)
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
f
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
solve
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML