Longest Increasing Path in Binary Tree
Question
Find the longest increaing path in a binary search tree
Solution
public List<TreeNode> longestIncreasingPath(TreeNode root) {
}
private void helper(List<TreeNode> path, TreeNode curNode) {
}
Last updated