mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2025-12-06 06:24:07 +00:00
15 lines
205 B
C++
15 lines
205 B
C++
#include <bits/stdc++.h>
|
|
using namespace std;
|
|
class MinStack
|
|
{
|
|
private:
|
|
vector<pair<int, int>> _stack;
|
|
int total_min;
|
|
|
|
public:
|
|
MinStack();
|
|
void push(int val);
|
|
void pop();
|
|
int top();
|
|
int getMin();
|
|
}; |