Useless question, which it do not show the values of BST. I thought it should find the answer in BST. But it just use inorder then find it as normal two sum.
leetcode-653-Two Sum IV - Input is a BST
最新推荐文章于 2023-06-12 15:51:49 发布
Useless question, which it do not show the values of BST. I thought it should find the answer in BST. But it just use inorder then find it as normal two sum.