מבני נתונים ואלגוריתמים - מחברת קורס/מבני נתונים/עצי חיפוש בינריים: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
שורה 162:
<source lang = "python">
# Inserts a key (k) to a tree (t).
Insert(t, k)
1 ++t.size
שורה 178 ⟵ 177:
8 if parent == Nil
9 t.root = New_nd
10
13
▲14 parent.r-child = new-nd
14 parent.r-child = new-nd
15
</source>
|