This is a simple system to manage and query product prices using a Segment Tree. It allows updates and range queries efficiently.
- How to build and use Segment Trees
- Updating elements and getting min/max in a range
- Java
- Segment Tree
- Build a segment tree from an array of prices
- Update the price at a position
- Query the max price in a given range