Kelvin

线段树

与树状数组类似,线段树可以实现区间查询和求和,但线段树可以实现树状数组实现不了的功能.
线段树模板

  • Title:
  • Author: Kelvin
  • Created at: 2023-03-09 00:00:00
  • Updated at: 2023-05-11 21:41:02
  • Link: https://yanwc.com/2023/03/09/2023-03-09-tree/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page