Choose the Closest Search-Tree Value with Smaller-Value Ties
Company: Roblox
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Choose the Closest Search-Tree Value with Smaller-Value Ties. Return the BST value nearest to the double target. If distances tie, return the smaller value. root is an original TreeNode* with val, left and right fields.