Tag: binary tree
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root of a binary tree, return the zigzag level order traversal of its nodes’ values. (i.e., from left …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root to a binary tree root, return whether it is symmetric. For example, this binary tree is symmetric: …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path …
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. …