Use iterative_remove_min()

pull/3/head
sgoudham 3 years ago
parent a10915ff80
commit 06307105e0
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -696,7 +696,7 @@ impl<T: Ord> Node<T> {
(None, Some(_)) => *root = current.right.take(),
(Some(_), Some(_)) => {
root.as_mut().unwrap().value =
Node::recursive_remove_min(&mut current.right).unwrap()
Node::iterative_remove_min(&mut current.right).unwrap()
}
}

Loading…
Cancel
Save