Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ right_rotate
Method
right_rotate
code/data-structures/avl_tree.cpp:40–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
38
augment(n), augment(l)
39
void left_rotate(node *n) { rotate(r, l); }
40
void right_rotate(node *n) { rotate(l, r); }
41
void fix(node *n) {
42
while (n) { augment(n);
43
if (too_heavy(n)) {
Callers
nothing calls this directly
Calls
1
rotate
Function · 0.85
Tested by
no test coverage detected