Has Determines the tree has the node of Key
(key T)
| 79 | |
| 80 | // Has Determines the tree has the node of Key |
| 81 | func (t *BinarySearch[T]) Has(key T) bool { |
| 82 | _, ok := searchTreeHelper[T](t.Root, t._NIL, key) |
| 83 | return ok |
| 84 | } |
| 85 | |
| 86 | // PreOrder Traverses the tree in the following order Root --> Left --> Right |
| 87 | func (t *BinarySearch[T]) PreOrder() []T { |
nothing calls this directly
no outgoing calls
no test coverage detected