The value of the left node must be lesser than the value of its parent.
The value of the right node must be greater than or equal to the value of its parent.
11. Binary Search Tree
Get Data Structures and Algorithms in Swift: Implement Stacks, Queues, Dictionaries, and Lists in Your Apps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.