problemscpp
A collection of my answers to algorithm problems in c++.
|
#include <acwing.h>
Public 成员函数 | |
MyQueue () | |
Initialize your data structure here 更多... | |
bool | empty () const |
Returns whether the queue is empty 更多... | |
int | peek () |
Get the front element 更多... | |
int | pop () |
Removes the element from in front of queue and returns that element 更多... | |
void | push (int x) |
Push element x to the back of queue 更多... | |
Private 属性 | |
vector< int > | main |
vector< int > | tmp |
acwing::acwing20::MyQueue::MyQueue | ( | ) |
bool acwing::acwing20::MyQueue::empty | ( | ) | const |
int acwing::acwing20::MyQueue::peek | ( | ) |
int acwing::acwing20::MyQueue::pop | ( | ) |
Removes the element from in front of queue and returns that element
在文件 acwing.cpp 第 5241 行定义.
void acwing::acwing20::MyQueue::push | ( | int | x | ) |
Push element x to the back of queue
x | The element to be pushed back into the queue |
在文件 acwing.cpp 第 5239 行定义.