(comparator-over-nodes func)
(comparator-over-nodes func & args)
Returns a comparison function specific for values of tree nodes
Returns a comparison function specific for values of tree nodes
(from-beginning root keep? max-items)
(from-beginning root keep? res max-items)
(height root)
(height root count)
Determines the depth of the BST
Determines the depth of the BST
(insert-node root new-node)
inserts a node into a BST
inserts a node into a BST
(is-bst root)
(is-bst root greaters lesss)
Not only does this check to see if the value at each 'less' child of each node is less than the value at that node (and 'greater'), but it also checks that EVERY element to the 'less' of each node is less than that node. Otherwise, the tree is not a BST. Additionally, this function ensures that
Not only does this check to see if the value at each 'less' child of each node is less than the value at that node (and 'greater'), but it also checks that EVERY element to the 'less' of each node is less than that node. Otherwise, the tree is not a BST. Additionally, this function ensures that
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close