python-cpp-html-programs-projects
python-cpp-html-programs-projects copied to clipboard
Merge two BST 's (pyhton,cpp or java)
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.
I would like to work on this can you assign me ?
I want to contribute. Please assign it @anomekumar08 as my first contribution for hacktoberfest 2022. I will submit code in java.
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.