wupangyen / LeetCode

LeetCode
1 stars 0 forks source link

LeetCode 701. Insert into a Binary Search Tree #32

Open wupangyen opened 3 years ago

wupangyen commented 3 years ago

Summary:

  1. First we need to find the position we need to insert
  2. By comparing value with left child or right child to find the right position
wupangyen commented 3 years ago
Screen Shot 2021-09-02 at 5 23 41 PM