Question: 7 . 1 3 LAB: BST validity checker Step 1 : Inspect the Node.py file mapect the class beclatation for a Bsr hode is Node
LAB: BST validity checker
Step : Inspect the
Node.py file
mapect the class beclatation for a Bsr hode is Node py Access. Node py by clacking on the orange antow hext to man py at the fog of the
coding wirdow. Each bode tas a kep, a liet chid reference and aright child reference.
Step : Implement the check bstvalidity function
A violiting hode wil be one of three ening:
A node is the leht putbere of an ancenot with a lesser bey
A nooy in the right tubtree of an anchetor with a geaser hey
A noch wish the ft or pight artreute referencing an
ancester
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
