Skip to content

Instantly share code, notes, and snippets.

use std::cmp::Ordering;
enum Tree<T: Ord> {
Node {v: T, left: Box<Tree<T>>, right: Box<Tree<T>>},
Empty,
}
impl<T: Ord> Tree<T> {
fn find(&self, target: T) -> bool {