Tag: depth first search
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two binary search trees root1 and root2, return a list containing all the integers from both trees sorted in …
Teaching Kids Programming: Videos on Data Structures and Algorithms Implement a data structure with the following methods: add(String word) which adds a lowercase alphabet string word to the search …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path …
Teaching Kids Programming: Videos on Data Structures and Algorithms An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = …