Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ push
Method
push
code/data-structures/monotonic_queue.cpp:12–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
struct min_queue {
11
min_stack inp, outp;
12
void push(int x) { inp.push(x); }
13
void fix() {
14
if (outp.empty()) while (!inp.empty())
15
outp.push(inp.top()), inp.pop(); }
Callers
nothing calls this directly
Calls
1
push
Method · 0.45
Tested by
no test coverage detected