what is the use of binary-or if using same values? (segment tree)

后端 未结 0 1877
情深已故
情深已故 2021-02-02 06:24

Can\'t understand the requirement of t[i<<1|1] in build() function of seg tree. isn\'t it equivalent to t[i<<1] ?


const int N = 1e5;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题