4 ms·
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 re
by 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 agoI used fenwick trees in a smart contract because space/time costs money.