Tag: depth first search algorithm
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not …
Given the root of a binary tree, find the maximum average value of any subtree of that tree. (A subtree of a tree is any node of that tree …
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may …
Given n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent process, but may have one or …
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or …