This can be done without extra space given that we are allowed to modify the tree. Convert BST to sorted doubly linked list (via in order traversal) and then apply 2 sum.
@gauravsinghbhandari44932 жыл бұрын
Thanks for this approach :)
@AbhinavSurekaEnigmatic2 жыл бұрын
Nice. But the conversion to DLL might take up stack space if done via recursion (although space will be less than O(n))
@itskhubaib.3 жыл бұрын
Great 👍 Must see for practicing questions!
@thakurrakeshbehera14463 жыл бұрын
❤ U BRO...... ❤❤❤❤❤
@nikhiljaiswal97633 жыл бұрын
Bhaiyaa plz make playlist for all practice questions
@shreyagupta81133 жыл бұрын
Please complete this playlist fast
@mohammadsheesh3 жыл бұрын
Hi bro 👋
@igaming_3 жыл бұрын
Please make one on split BST...
@dakshlakhotiya42753 жыл бұрын
Bhaiya... Please make a vedio on binary lifting algorithm for kth ancestor in a BT🙏. Not much is available on KZbin.
@sportsknowledge923 жыл бұрын
Hello Sir please make a video for why people are agree working extra time in company.
@sahilkumar40783 жыл бұрын
bro!! System design problems pr bhi kuch content daloo!! pls, facing so much problems during machine coding round!
@anujkhare38153 жыл бұрын
bhaiya please make video on next permutation question
@aniketengilife Жыл бұрын
same problem with time complexity O(n) and space complexity O(log n) by using 2 stacks instead of an array. can you make a video on that
@sahilalikhan51903 жыл бұрын
1st comment ❤️
@abdulmajidshaikh3003 жыл бұрын
bhaiya please one video , class ,methods, linkedlist ,stack ,queue, fully basic please please
@AnujBhaiya3 жыл бұрын
Please refer to the Collection framework in one video. It'll help
@abdulmajidshaikh3003 жыл бұрын
@@AnujBhaiya collection framework in one video is very helpful but that topic(linkedlist ,stack ,queue fully basic) without collection framework .if you have time make video then ok . thank u bhaiya.
@aniankiraja6892 ай бұрын
Provided solution only give first pair, other sets of pairs will not be derived.
@mrrishiraj883 жыл бұрын
🙏👍👍
@karishmayadav13913 жыл бұрын
Hello bhaiya, i wanted to ask that if I learn Java from your java playlist from that 3 videos then will it be enough to apply for the java developer position?