MCPcopy Create free account
hub / github.com/OpenGenus/quark / insert

Method insert

code/code/sorting/src/tree_sort/tree_sort.go:40–55  ·  view source on GitHub ↗

Insert the given value in the tree. The tree is traveled until an empty sub-tree is found: If the value is lesser than the one hold by the current node, try to insert it to the left. If the value is greater or equal than the one hold by the current node, try to insert it to the right. The value is

(value int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

bubble_sortFunction · 0.45
binaryTreeSortFunction · 0.45
isAnagramFunction · 0.45
strAddFunction · 0.45
strAddFunction · 0.45
strMulFunction · 0.45
mainFunction · 0.45

Calls 1

createTreeFunction · 0.70

Tested by

no test coverage detected