Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: seg_tree Download
  • Category:
  • Data structs
  • Tags:
  • File Size:
  • 1kb
  • Update:
  • 2018-05-03
  • Downloads:
  • 0 Times
  • Uploaded by:
  • 875545328
 Description: Let us consider the following problem to understand Segment Trees. We have an array arr[0 . . . n-1]. We should be able to 1 Find the sum of elements from index l to r where 0 <= l <= r <= n-1 2 Change value of a specified element of the array to a new value x. We need to do arr[i] = x where 0 <= i <= n-1.
 Downloaders recently: [More information of uploader 875545328]
 To Search:
File list (Check if you may need any files):
FilenameSizeDate
seg_tree.cpp 5075 2018-05-02

CodeBus www.codebus.net