MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / Add

Method Add

templates/binary-index-tree.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 void Add(int x, int u)
26 {
27 for (int i = x; i <= n; i += Lowbit(i)) {
28 tree[i] += u;
29 }
30 }
31
32 std::vector<int> vec;
33

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected