Add bst module: recursive and iterative insert/search, three delete cases, BST validation, kth smallest, LCA, floor/ceiling, balance check and 10 problems cross-checked against brute force (25 tests, 16 transcripts)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
Claude
2026-12-03 23:32:04 +05:30
parent 6e5764978f
commit 5419e5057d
36 changed files with 1712 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
Same keys, different insertion order (n = 1023; shuffles seeded 1..5)
=====================================================================
order height avg nodes per search
sorted 1..1023 1023 512.00
shuffled, seed 1 24 11.58
shuffled, seed 2 19 11.47
shuffled, seed 3 20 11.81
shuffled, seed 4 23 12.15
shuffled, seed 5 25 12.98
middle-first (fromSorted) 10 9.01