Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ Delete
Method
Delete
structure/tree/btree.go:347–355 ·
view source on GitHub ↗
(key T)
Source
from the content-addressed store, hash-verified
345
}
346
347
func
(tree *BTree[T]) Delete(key T) {
348
if
tree.root == nil {
349
return
350
}
351
tree.root.Delete(tree, key)
352
if
tree.root.numKeys == 0 {
353
tree.root = tree.root.children[0]
354
}
355
}
Callers
nothing calls this directly
Calls
1
Delete
Method · 0.65
Tested by
no test coverage detected