Tag: recursion
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two binary search trees a and b and an integer target. Return whether there’s a number in …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two binary trees root0 and root1, return whether the sequence of leaves left-to-right in both trees are the same. …
Given a string digits containing 2 to 9 inclusive, return in sorted lexicographic order all possible strings it could represent when mapping to letters on a phone dialpad. These …
Teaching Kids Programming: Videos on Data Structures and Algorithms This problem was inspired by this original tweet by Max Howell: Google: 90% of our engineers use the software you …
Given a binary tree root, return the sum of the longest path from the root to a leaf node. If there are two equally long paths, return the larger …