okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge branch 'f-140' into f-140-j0fff115df

main
859 B26 linesraw
1[long2 BST] prompt_n=1922 cache_n=0 prompt 425.3 tok/s | decode 256 tok 57.2 tok/s | drafts 186/208 | wall 9.0s | finish length
2[long2 turn2] prompt_n=21 cache_n=2178 prompt 61.4 tok/s | decode 256 tok 71.4 tok/s | drafts 209/212 | wall 3.9s | finish length
3```python
4class BinarySearchTree:
5    """A binary search tree implementation with insert, search, delete, and in-order traversal."""
6
7    def __init__(self):
8        """Initialize an empty binary search tree."""
9        self.root = None
10
11    def insert(self, value):
12        """Insert a value into the binary search tree.
13
14        Args:
15            value: The value to insert into the tree.
16
17        Returns:
18            None
19        """
20        if self.root is None:
21            self.root = _Node(value)
22            return
23
24        current = self.root
25        while True:
26            if value < curr