...

/

Challenge: Find Ceil and Floor Values in a BST

Challenge: Find Ceil and Floor Values in a BST

Let’s find the ceil and floor values in a BST given a key.

Problem

Given a BST and a particular value, find the floor and ceil values of the given value. The floor value is the value that is less than and closest to the given value. The ceil value is the value that is greater than and closest ...