Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Data Structures/Tree/Binary Search Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var Tree = (function () {

// Start by searching the root
Tree.prototype.search = function (val) {
var found = this.root.search(val);
let found = this.root.search(val);
if (found === null) {
console.log(val + " not found");
}
Expand All @@ -92,7 +92,7 @@ var Tree = (function () {

// Add a new value to the tree
Tree.prototype.addValue = function (val) {
var n = new Node(val);
let n = new Node(val);
if (this.root == null) {
this.root = n;
} else {
Expand Down