Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
count
Method · 0.45
query
Method · 0.45
test
Function · 0.45
random_tree
Function · 0.45
scc
Function · 0.45
euler_path
Function · 0.45
tsort
Function · 0.45
Calls
no outgoing calls
Tested by
3
query
Method · 0.36
test
Function · 0.36
random_tree
Function · 0.36