美文网首页
270. Closest Binary Search Tree

270. Closest Binary Search Tree

作者: 我是你的果果呀 | 来源:发表于2016-12-02 23:46 被阅读0次

Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.

Note:

Given target value is a floating point.

You are guaranteed to have only one unique value in the BST that is closest to the target.

神奇的递归。

相关文章

网友评论

      本文标题:270. Closest Binary Search Tree

      本文链接:https://www.haomeiwen.com/subject/gunqmttx.html