Given a binary tree and an integer K, return two nodes which are at different level and their sum is equal to K.
Constraints :
I gave a solution based on DLL and HashMap, but it is not very optimised. This led to rejection :(
Please let me know your thoughts on this.