Are for Right-Rotation(T,x) and x.left=y; y.left = x.right following statements equal: (x.right).parent= y; (y.left).parent=y?

前端 未结 0 1469
旧时难觅i
旧时难觅i 2021-01-30 05:29

Given: Binary Search Tree Right Rotation

Could one write instead of y.left=x.right (x.right).parent=y

also

y.left=x.right (y.left).parent=y

If not, w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题