450. Delete Node in a BST

1.問題

2.想法

  • 當左右子都存在時, 取右子樹的最左子移到root, 並且刪除右子樹

3.程式碼

4.Performance

Last updated