Skip to content

Conversation

ashokdey
Copy link
Member

🐔 What's new?

  • Binary Tree (!BST)
    • Create a BT using Level Order Array

@ashokdey ashokdey added enhancement New feature or request new-data-structure labels Oct 17, 2019
@ashokdey ashokdey requested a review from TheSTL October 17, 2019 11:51
@ashokdey ashokdey self-assigned this Oct 17, 2019

class BinaryTree {
constructor(arr) {
if (!Array.isArray(arr)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check if array is empty or not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got you!

Copy link
Member

@TheSTL TheSTL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@ashokdey ashokdey merged commit 9e01c43 into master Oct 17, 2019
@ashokdey ashokdey deleted the problems branch October 18, 2019 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants