MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / get_val

Method get_val

Data Structures/Persistent Queue.cpp:29–31  ·  view source on GitHub ↗

get the ith value of the rth array

Source from the content-addressed store, hash-verified

27 }
28 // get the ith value of the rth array
29 T get_val(int r, int i) {
30 return get_val(root[r], i, 0, n - 1);
31 }
32 T get_val(node* cur, int i, int l, int r) {
33 if (l == r) return cur -> x;
34 if (i <= ((l + r) >> 1)) return get_val(cur -> l, i, l, (l + r) >> 1);

Callers 1

popMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected