Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ push
Method
push
practice/itemPool.cpp:24–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
}
23
24
void push(const T &val) // 入队操作
25
{
26
QueueItem *item = new QueueItem(val);
27
_rear->_next = item; // 类似于尾插法
28
_rear = item;
29
}
30
31
void pop() // 出队操作
32
{
Callers
8
main
Function · 0.45
main
Function · 0.45
main
Function · 0.45
put
Method · 0.45
reversePolarExp
Function · 0.45
calculateRPE
Function · 0.45
stringToTreeNode
Function · 0.45
treeNodeToString
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected