Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShahjalalShohag/code-library
/ pop
Method
pop
Data Structures/Persistent Queue.cpp:79–85 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
77
cur++;
78
}
79
T pop(int r) { // pops the top element of the rth queue and returns the popped element
80
st.upd(r, L[r], 0);
81
L[cur] = L[r] + 1;
82
R[cur] = R[r];
83
cur++;
84
return st.get_val(r, L[r]);
85
}
86
};
87
88
int32_t main(){
Callers
1
main
Function · 0.45
Calls
2
upd
Method · 0.45
get_val
Method · 0.45
Tested by
no test coverage detected