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

Method mn

code/data-structures/monotonic_queue.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 outp.push(inp.top()), inp.pop(); }
16 int top() { fix(); return outp.top(); }
17 int mn() {
18 if (inp.empty()) return outp.mn();
19 if (outp.empty()) return inp.mn();
20 return min(inp.mn(), outp.mn()); }
21 void pop() { fix(); outp.pop(); }
22 bool empty() { return inp.empty() && outp.empty(); } };
23// vim: cc=60 ts=2 sts=2 sw=2:

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
mnMethod · 0.45

Tested by

no test coverage detected