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

Method empty

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

Source from the content-addressed store, hash-verified

55 void update_key(int n) {
56 assert(loc[n] != -1), swim(loc[n]), sink(loc[n]); }
57 bool empty() { return count == 0; }
58 int size() { return count; }
59 void clear() { count = 0, memset(loc, 255, len << 2); }};
60// vim: cc=60 ts=2 sts=2 sw=2:

Callers 15

countMethod · 0.45
aho_corasickMethod · 0.45
welzlFunction · 0.45
gift_wrapFunction · 0.45
initMethod · 0.45
intxClass · 0.45
stable_marriageFunction · 0.45
lisFunction · 0.45
testFunction · 0.45
queryMethod · 0.45
testFunction · 0.45
random_treeFunction · 0.45

Calls

no outgoing calls

Tested by 5

testFunction · 0.36
queryMethod · 0.36
testFunction · 0.36
random_treeFunction · 0.36
lca_treeMethod · 0.36