Minor changes

This commit is contained in:
Mihalis Tsoukalos 2019-05-22 22:37:43 +03:00
commit 984f515fcb

View file

@ -35,11 +35,9 @@ func insert(t *Tree, v int) *Tree {
if t == nil {
return &Tree{nil, v, nil}
}
if v == t.Value {
return t
}
if v < t.Value {
t.Left = insert(t.Left, v)
return t