Skip to content

Commit

Permalink
Readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh07bharvada committed Jan 5, 2021
1 parent b09b751 commit 2129805
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ The diameter of a tree (sometimes called the width) is the number of nodes on th
Params: root of the Tree

Definition for a binary tree node.
#####function TreeNode(val, left, right) {
######this.val = (val === undefined ? 0 : val)
######his.left = (left === undefined ? null : left)
######this.right = (right === undefined ? null : right)
#####}
function TreeNode(val, left, right) {
this.val = (val === undefined ? 0 : val)
this.left = (left === undefined ? null : left)
this.right = (right === undefined ? null : right)
}

```javascript

Expand Down

0 comments on commit 2129805

Please sign in to comment.