Về Chương 4
Cây Pha Lê
CẤU TRÚC BINARY SEARCH TREESỐ NODE: 7
Mã Giả
function insert(node, value):
if node == null → tạo node mới
if value < node.value:
node.left = insert(left, value)
if value > node.value:
node.right = insert(right, value)
return (giá trị đã tồn tại)
Trạng Thái
Sẵn sàng — nhập giá trị để thao tác
50302040706080