reset password
Author Message
yonchrisanto
Posts: 2
Posted 12:10 Nov 08, 2017 |

Are the leftRotate() and rightRotate() functions supposed to take in the pivot node or the root node as parameter

kknaur
Posts: 540
Posted 13:10 Nov 08, 2017 |
yonchrisanto wrote:

Are the leftRotate() and rightRotate() functions supposed to take in the pivot node or the root node as parameter

The root of the rotation. The pivot can be found if you have the root.