MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / RightRotate

Method RightRotate

data_structures/tree_234.cpp:845–856  ·  view source on GitHub ↗

* @brief Do the actual right rotate operation * * Given parent node, and the pivot item index, the right rotate operation * is uniquely identified. The function assume the requirements are * fulfilled and won't do any extra check. This function is call by * TryRightRotate(), and the condition checking should be done before call * it. * * @param parent the parent node in this right rotate o

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 11

GetItemLeftChildMethod · 0.80
GetItemRightChildMethod · 0.80
Is34NodeMethod · 0.80
Is2NodeMethod · 0.80
InsertItemByIndexMethod · 0.80
GetItemMethod · 0.80
GetRightmostChildMethod · 0.80
SetItemMethod · 0.80
GetMaxItemMethod · 0.80
RemoveItemByIndexMethod · 0.80
GetCountMethod · 0.80

Tested by

no test coverage detected