@@ -282,8 +282,8 @@ <h1 class="page-title">Source: data-structures/binary-search-tree.js</h1>
282282 }
283283
284284 if (node._left && node._right) {
285- var min = this._findMin(node._right),
286- temp = node.value;
285+ var min = this._findMin(node._right);
286+ var temp = node.value;
287287
288288 node.value = min.value;
289289 min.value = temp;
@@ -390,9 +390,9 @@ <h1 class="page-title">Source: data-structures/binary-search-tree.js</h1>
390390 if (!root) {
391391 return 0;
392392 }
393- var leftHeight = this._getHeight(root._left),
394- rightHeight = this._getHeight(root._right),
395- path = leftHeight + rightHeight + 1;
393+ var leftHeight = this._getHeight(root._left);
394+ var rightHeight = this._getHeight(root._right);
395+ var path = leftHeight + rightHeight + 1;
396396 return Math.max(path, getDiameter(root._left), getDiameter(root._right));
397397 }.bind(this);
398398 return getDiameter(this._root);
@@ -429,10 +429,10 @@ <h1 class="page-title">Source: data-structures/binary-search-tree.js</h1>
429429
430430 exports.BinaryTree.prototype._lowestCommonAncestor =
431431 function (firstNode, secondNode, current) {
432- var firstNodeInLeft = this._existsInSubtree(firstNode, current._left),
433- secondNodeInLeft = this._existsInSubtree(secondNode, current._left),
434- firstNodeInRight = this._existsInSubtree(firstNode, current._right),
435- secondNodeInRight = this._existsInSubtree(secondNode, current._right);
432+ var firstNodeInLeft = this._existsInSubtree(firstNode, current._left);
433+ var secondNodeInLeft = this._existsInSubtree(secondNode, current._left);
434+ var firstNodeInRight = this._existsInSubtree(firstNode, current._right);
435+ var secondNodeInRight = this._existsInSubtree(secondNode, current._right);
436436 if ((firstNodeInLeft && secondNodeInRight) ||
437437 (firstNodeInRight && secondNodeInLeft)) {
438438 return current;
@@ -457,7 +457,8 @@ <h1 class="page-title">Source: data-structures/binary-search-tree.js</h1>
457457 this._existsInSubtree(node, root._right);
458458 };
459459
460- })(typeof window === 'undefined' ? module.exports : window);</ code > </ pre >
460+ })(typeof window === 'undefined' ? module.exports : window);
461+ </ code > </ pre >
461462 </ article >
462463 </ section >
463464
@@ -467,13 +468,13 @@ <h1 class="page-title">Source: data-structures/binary-search-tree.js</h1>
467468</ div >
468469
469470< nav >
470- < h2 > < a href ="index.html "> Home</ a > </ h2 > < h3 > Modules</ h3 > < ul > < li > < a href ="module-data-structures_binary-search-tree.html "> data-structures/binary-search-tree</ a > </ li > < li > < a href ="module-data-structures_heap.html "> data-structures/heap</ a > </ li > < li > < a href ="module-data-structures_interval-tree.html "> data-structures/interval-tree</ a > </ li > < li > < a href ="module-data-structures_linked-list.html "> data-structures/linked-list</ a > </ li > < li > < a href ="module-data-structures_red-black-tree.html "> data-structures/red-black-tree</ a > </ li > < li > < a href ="module-graphs_others_topological-sort.html "> graphs/others/topological-sort</ a > </ li > < li > < a href ="module-graphs_searching_bfs.html "> graphs/searching/bfs</ a > </ li > < li > < a href ="module-graphs_searching_dfs.html "> graphs/searching/dfs</ a > </ li > < li > < a href ="module-graphs_shortest-path_bellman-ford.html "> graphs/shortest-path/bellman-ford</ a > </ li > < li > < a href ="module-graphs_shortest-path_dijkstra.html "> graphs/shortest-path/dijkstra</ a > </ li > < li > < a href ="module-graphs_shortest-path_floyd-warshall.html "> graphs/shortest-path/floyd-warshall</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.html "> graphs/spanning-trees/prim</ a > </ li > </ ul > < h3 > Classes</ h3 > < ul > < li > < a href ="module-data-structures_binary-search-tree.BinaryTree.html "> BinaryTree</ a > </ li > < li > < a href ="module-data-structures_binary-search-tree.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_heap.Heap.html "> Heap</ a > </ li > < li > < a href ="module-data-structures_interval-tree.IntervalTree.html "> IntervalTree</ a > </ li > < li > < a href ="module-data-structures_interval-tree.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_linked-list.LinkedList.html "> LinkedList</ a > </ li > < li > < a href ="module-data-structures_linked-list.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_red-black-tree.RBTree.html "> RBTree</ a > </ li > < li > < a href ="module-graphs_shortest-path_bellman-ford.Edge.html "> Edge</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Edge.html "> Edge</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Graph.html "> Graph</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Vertex.html "> Vertex</ a > </ li > </ ul >
471+ < h2 > < a href ="index.html "> Home</ a > </ h2 > < h3 > Modules</ h3 > < ul > < li > < a href ="module-data-structures_binary-search-tree.html "> data-structures/binary-search-tree</ a > </ li > < li > < a href ="module-data-structures_heap.html "> data-structures/heap</ a > </ li > < li > < a href ="module-data-structures_interval-tree.html "> data-structures/interval-tree</ a > </ li > < li > < a href ="module-data-structures_linked-list.html "> data-structures/linked-list</ a > </ li > < li > < a href ="module-data-structures_red-black-tree.html "> data-structures/red-black-tree</ a > </ li > < li > < a href ="module-graphs_others_topological-sort.html "> graphs/others/topological-sort</ a > </ li > < li > < a href ="module-graphs_searching_bfs.html "> graphs/searching/bfs</ a > </ li > < li > < a href ="module-graphs_searching_dfs.html "> graphs/searching/dfs</ a > </ li > < li > < a href ="module-graphs_shortest-path_bellman-ford.html "> graphs/shortest-path/bellman-ford</ a > </ li > < li > < a href ="module-graphs_shortest-path_dijkstra.html "> graphs/shortest-path/dijkstra</ a > </ li > < li > < a href ="module-graphs_shortest-path_floyd-warshall.html "> graphs/shortest-path/floyd-warshall</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.html "> graphs/spanning-trees/prim</ a > </ li > < li > < a href ="module-primes_is-prime.html "> primes/is-prime</ a > </ li > < li > < a href ="module-primes_prime-factor-tree.html "> primes/prime-factor-tree</ a > </ li > < li > < a href ="module-primes_sieve-of-eratosthenes.html "> primes/sieve-of-eratosthenes</ a > </ li > </ ul > < h3 > Classes</ h3 > < ul > < li > < a href ="module-data-structures_binary-search-tree.BinaryTree.html "> BinaryTree</ a > </ li > < li > < a href ="module-data-structures_binary-search-tree.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_heap.Heap.html "> Heap</ a > </ li > < li > < a href ="module-data-structures_interval-tree.IntervalTree.html "> IntervalTree</ a > </ li > < li > < a href ="module-data-structures_interval-tree.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_linked-list.LinkedList.html "> LinkedList</ a > </ li > < li > < a href ="module-data-structures_linked-list.Node.html "> Node</ a > </ li > < li > < a href ="module-data-structures_red-black-tree.RBTree.html "> RBTree</ a > </ li > < li > < a href ="module-graphs_shortest-path_bellman-ford.Edge.html "> Edge</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Edge.html "> Edge</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Graph.html "> Graph</ a > </ li > < li > < a href ="module-graphs_spanning-trees_prim.Vertex.html "> Vertex</ a > </ li > </ ul >
471472</ nav >
472473
473474< br class ="clear ">
474475
475476< footer >
476- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.3.0-alpha13</ a > on Sun Jan 11 2015 16:51:38 GMT+0200 (EET)
477+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.3.0-alpha13</ a > on Sun Jan 11 2015 19:06:09 GMT+0200 (EET)
477478</ footer >
478479
479480< script > prettyPrint ( ) ; </ script >
0 commit comments