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 | ( | ) |
Initialize your data structure here
在文件 acwing.cpp 第 5234 行定义.
被这些函数引用 MyQueue().
|
nodiscard |
int acwing::acwing20::MyQueue::peek | ( | ) |
Get the front element
在文件 acwing.cpp 第 5255 行定义.
被这些函数引用 peek().
int acwing::acwing20::MyQueue::pop | ( | ) |
void acwing::acwing20::MyQueue::push | ( | int | x | ) |
|
private |
|
private |