Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
array-range-queries
376+ articles
Binary Tree
330+ articles
LCA
38+ articles
LCA.array-range-queries
2 posts
Recent Articles
Popular Articles
Find distance between two nodes in the given Binary tree for Q queries
Last Updated: 15 July 2025
Given a binary tree having N nodes and weight of N-1 edges. The distance between two nodes is the sum of the weight of edges on the path between two nodes. Each query cont...
read more
DSA
Binary Tree
LCA.array-range-queries
LCA
Query to find the maximum and minimum weight between two nodes in the given tree using LCA.
Last Updated: 12 July 2025
Given a tree, and the weights of all the node. Each query contains two integers u and v, the task is to find the minimum and maximum weight on the simple path between u an...
read more
DSA
array-range-queries
LCA.array-range-queries
LCA