Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

SegmentTree_GCD_Queries_for ranges #334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

SegmentTree_GCD_Queries_for ranges #334

wants to merge 1 commit into from

Conversation

parthgpta
Copy link

SegmentTree_GCD_Queries_for ranges
A Segment Tree is a data structure that allows answering range queries over an array effectively, while still being flexible enough to allow modifying the array. This includes finding the sum of consecutive array elements a[l…r], or finding the minimum element in a such a range in O(logn) time. Between answering such queries the Segment Tree allows modifying the array by replacing one element, or even change the elements of a whole subsegment (e.g. assigning all elements a[l…r] to any value, or adding a value to all element in the subsegment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant