# Find distance between two nodes of a binary tree leetcode

Find neighbour nodes in peer to peer networks like BitTorrent. Used by crawlers in search engines to visit links on a webpage, and keep doing the same recursively. Find people at a given distance from a person in social networks. Identify all neighbour locations in GPS systems. Search whether there's a path between two nodes of a graph (path ...

Shortest distance between two nodes in bst leetcodePractice Mock Interviews & Coding Problems - Land Top Jobs ...Comparing Similarity Between Two Trees. What I did in this project is that I computed the general gap edit distance between two binary trees in O(n5) time. Prior to our work, no such distance computation was given since the computation for general gap edit distance between arbitrary tree case has been proved to be NP-hard.

Find the LCA (nearest common ancestor) of the two nodes of the binary tree (must know + common test) + find the distance from the leaf node to the LCA + find the distance between the two leaf nodes, Programmer Sought, the best programmer technical posts sharing site.Balanced binary tree - leetcode. Balanced Binary Tree, For this problem, a height-balanced binary tree is defined as: a binary tree in which the left and right subtrees of every node differ in height by no more than 1. Easy. 2194166Add to ListShare. Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the ...