diff --git a/data-structures/binary-tree/bst.go b/data-structures/binary-tree/bst.go index da1aa35..b59f779 100644 --- a/data-structures/binary-tree/bst.go +++ b/data-structures/binary-tree/bst.go @@ -105,8 +105,8 @@ func (t *Tree) Delete(i int) bool { if h.Left != nil { right := h.Right h.Value = h.Left.Value + h.Right = h.Left.Right h.Left = h.Left.Left - h.Right = h.Left.Right if right != nil { subTree := &Tree{Head: h}