Pergunta de entrevista da empresa Amazon

Find a pair in BST with a given sum. If not present return -1.

Resposta da entrevista

Sigiloso

13 de ago. de 2020

We can store inorder traversal of BST in an array. this will give us sorted data then using two-point method we can find a pair in it.