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

Method top

code/data-structures/heap.cpp:52–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 if (fix) sink(0);
51 }
52 int top() { assert(count > 0); return q[0]; }
53 void heapify() { for (int i = count - 1; i > 0; i--)
54 if (cmp(i, (i - 1) / 2)) swp(i, (i - 1) / 2); }
55 void update_key(int n) {

Callers 7

countMethod · 0.45
queryMethod · 0.45
testFunction · 0.45
random_treeFunction · 0.45
sccFunction · 0.45
euler_pathFunction · 0.45
tsortFunction · 0.45

Calls

no outgoing calls

Tested by 3

queryMethod · 0.36
testFunction · 0.36
random_treeFunction · 0.36