python-cpp-html-programs-projects icon indicating copy to clipboard operation
python-cpp-html-programs-projects copied to clipboard

Merge two BST 's (pyhton,cpp or java)

Open ArmanKumar21 opened this issue 2 years ago • 3 comments

Given two BSTs, return elements of both BSTs in sorted form.

Example 1:

Input: BST1: 5 /
3 6 /
2 4
BST2: 2 /
1 3
7 / 6 Output: 1 2 2 3 3 4 5 6 6 7 Explanation: After merging and sorting the two BST we get 1 2 2 3 3 4 5 6 6 7.

Example 2:

Input: BST1: 12 /
9 / \
6 11 BST2: 8 /
5 10 / 2 Output: 2 5 6 8 9 10 11 12 Explanation: After merging and sorting the two BST we get 2 5 6 8 9 10 11 12.

ArmanKumar21 avatar Oct 10 '22 14:10 ArmanKumar21

I would like to work on this can you assign me ?

Aniumbott avatar Oct 10 '22 14:10 Aniumbott

I want to contribute. Please assign it @anomekumar08 as my first contribution for hacktoberfest 2022. I will submit code in java.

SanjoySaha24 avatar Oct 14 '22 17:10 SanjoySaha24

Good morning , We are a team of 3 members from St Francis Institute of Technology (Mumbai , Maharashtra). For our Resource open source project Lab (ROSPL) , we are interested to work on the given issue. Kindly assign this issue to us . Thank You.

Abhigitlog avatar Aug 31 '23 06:08 Abhigitlog