DSA Key Concepts

Tree Fundamentals

Define roots, edges, children, leaves, subtrees, depth, and height. Compare general, binary, full, complete, and perfect trees and introduce pointer and array representations.