Floor And Ceil | BST | C++ Solution
Floor And Ceil, is a BST related problem and in this post we will see how we can solve this challenge in C++
Find the Floor and Ceil of a given key from the BST Floor: It is that node which is equal to or nearest minimum of key Ceil: It is that node which is equal to or nearest maximum of key
Please check the main.cpp snippet for the solution.
This solution originally posted at: Github by @susantabiswas
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.