MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / node

Class node

code/data-structures/cartesian_tree.cpp:1–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1struct node {
2 int x, y, sz;
3 node *l, *r;
4 node(int _x, int _y)
5 : x(_x), y(_y), sz(1), l(NULL), r(NULL) { } };
6int tsize(node* t) { return t ? t->sz : 0; }
7void augment(node *t) {
8 t->sz = 1 + tsize(t->l) + tsize(t->r); }

Callers 4

mkMethod · 0.70
updateMethod · 0.70
queryMethod · 0.70
range_updateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected