Hi
This blog is about Range query and update question. For beginners, this path is very helpful.
Follow the order.
- Segment Trees
https://youtu.be/FR5d4V7Z9SE — Coding Blocks Tutorial
https://www.hackerearth.com/practice/data-structures/advanced-data- structures/segment-trees/tutorial/
- Sparse table
https://cp-algorithms.com/data_structures/sparse-table.html
For reference and practice questions cp-alogrithms is a great place.
Cheers!