Skip to content

bhavikjain403/SegmentTreesInPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segment Tree templates in Python

Segment Trees are very powerful data structures to efficiently solve range/update query problems

This repository contains some templates for implementing segment trees in python
Note Any type of segment tree can be easily implemented by just making changes (specifying required operation like sum, difference, max, min, bitwise operators, etc.) in the code at :-

  • Line 9
  • Line 13
  • Line 19
  • Line 30

About

Simple and Short codes to implement Segment trees in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages