MCPcopy Create free account
hub / github.com/ashish-chopra/Structures / put

Method put

src/main/java/com/trees/BST.java:110–112  ·  view source on GitHub ↗

inserts a key-value pair into the tree, if not already exists. In case if Key is found, then its corresponding value is replaced. if Value is null , then the entry will be deleted from tree. @param key @param val

(Key key, Value val)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testBSTOperationsMethod · 0.95
testDeleteOperationsMethod · 0.95

Calls 2

sizeMethod · 0.95
compareToMethod · 0.45

Tested by 2

testBSTOperationsMethod · 0.76
testDeleteOperationsMethod · 0.76