maximaxi's blog

By maximaxi, history, 8 years ago, In English

This is for basic, below-IOI level problemsets. If one knows the top-down, recursive segment tree, it should be sufficient to solve all segment tree problems that don't rely heavily on constant-time optimization, right?

  • Vote: I like it
  • +11
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +21 Vote: I do not like it

I haven't heard of any situation where bottom-up approach can do more than top-bottom. So, yes, if you don't care much about const optimization and coding time, feel free to go with top-bottom approach only. I personally find bottom-up approach shorter to implement.