Glossary term

What is subtree? Meaning for developers

Any node together with everything below it. A subtree is itself a tree, which is why recursion fits trees so well.

Learn it properly · DSALesson 41: Binary Trees and TraversalsRoot, leaves and height. Preorder, inorder and postorder, drawn and coded.

All DSA terms

Related terms

← All glossary terms, A to Z