Tag: binary tree
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary tree root, return the maximum sum of a subtree. A subtree is defined to be some node …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root of a binary tree, the level of its root is 1, the level of its children is …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given the root of a binary tree containing digits from 0 to 9 only. Each root-to-leaf path in …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST. …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a Binary Tree, we can count the number of nodes using either Depth First Search (DFS Algorithm) and Breadth …