Skip to main content

getNewBBSTree

Short summary

function to create a new balanced binary searchtree

Parameters

NameTypeCommentKind
comparatorCNM_AbstractObject.IComparatoroptional custom comparatorinput
treeIBalancedBinarySearchTreethe created treeoutput

Code

Declaration

METHOD getNewBBSTree :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*optional custom comparator*)
comparator : CNM_AbstractObject.IComparator := 0;
END_VAR
VAR_OUTPUT
(* the created tree *)
tree :IBalancedBinarySearchTree;
END_VAR