New returns a new, empty binary tree
()
| 84 | |
| 85 | // New returns a new, empty binary tree |
| 86 | func NewTree() *Tree { |
| 87 | return &Tree{nil, 0, nil, nil, false} |
| 88 | } |
| 89 | |
| 90 | //NewMinimalHeightBST gives the minimal height tree from the given sorted array |
| 91 | func NewMinimalHeightBST(arr []int, low int, high int) *Tree { |
no outgoing calls
no test coverage detected