Platform
Resources
Pricing
Sign in
Get started
Sadanand Pai
Front End Developer | UI Developer | Web Developer | Learner
Workspace
Fork
Public
DataStructures
By
Sadanand Pai
Edited
Jun 14, 2023
Importers
1
Insert cell
Insert cell
function
Tree
(
val
,
left
=
null
,
right
=
null
)
{
this
.
val
=
val
;
this
.
left
=
left
;
this
.
right
=
right
;
}
Insert cell
Insert cell
Insert cell
createBinaryTreeFromArray
(
[
1
,
7
,
9
,
2
,
6
,
null
,
9
,
null
,
null
,
5
,
11
,
5
,
null
]
)
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
Tree
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
createBinaryTreeFromArray
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML