当前位置:首页 > IT技术 > 其他好文 > 正文
🌟 知识贝壳App

知识深海,精准拾贝

随时随地查阅各类知识,汉语文化、百科科普、历史人物、语言翻译、专业词典、医学健康、科技文献,海量资源,尽在掌握

知识贝壳APP下载二维码
扫码下载APP

653. Two Sum IV - Input is a BST
2018-10-11 12:58:51

Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.Example 1:Input: 5 / 3 6 / 2 4 7Target = 9Output: True Example 2:Input: 5 / 3 6 / 2 4 7Target = 28Output: False//Time: ......

本文摘自 :https://www.cnblogs.com/

开通会员,享受整站包年服务