Graph Theory37 sections · 1633 units
Open in CourseQuiz: Tree Inversion
Knowledge check
Check Your Understanding
To invert a binary tree, you swap every node's left and right children. What is the time complexity of the recursive approach?
- A. time, space, where is the tree height
- B. time, space
- C. time, space
- D. time, space always