restructure + lecutre 07

This commit is contained in:
SowinskiBraeden committed 2026-02-19 11:59:58 -08:00
1 parent b8c19aa341
commit 7c3198fee4
96 files changed
+458 -4

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
(* type 'a t = Leaf | Node of 'a * 'a t * 'a t *)
type 'a t (* for abstract data type *)
val size : 'a t -> int
val height : 'a t -> int
val empty : 'a t
val is_empty : 'a t -> bool
val insert : 'a -> 'a t -> 'a t
val of_list : 'a list -> 'a t
val mem : 'a -> 'a t -> bool
val largest : 'a t -> 'a
val smallest : 'a t -> 'a
val delete : 'a -> 'a t -> 'a t