Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShahjalalShohag/code-library
/ splay_dir
Method
splay_dir
Data Structures/Top Tree.cpp:209–216 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
207
}
208
209
void splay_dir(int x) {
210
while (!r() && d() == x) {
211
if (!p->r() && p->d() == x) {
212
p->rot();
213
}
214
rot();
215
}
216
}
217
218
void splay_2(int c_d) {
219
assert(!is_vert && is_path);
Callers
1
splay_vert
Method · 0.80
Calls
3
d
Method · 0.80
rot
Method · 0.80
r
Method · 0.45
Tested by
no test coverage detected