Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
EnderShadow8
· 4y ago · 0 comments
Segment trees are objectively superior in all ways except implementation length
Comments
[–]
almog
4y ago
Another advantage to Fenwick Tree: while it shares asymptotic space complexity with Segment Tree, it has better constant factors, which can be useful in very restricted environments.
[–]
silverlake
4y ago
I used fenwick trees in a smart contract because space/time costs money.