ArmanKumar21 / python-cpp-html-programs-projects

This Repository is created to help fellow coders learn open source contributions. This Repository is created for Hacktoberfest 2023.
MIT License
18 stars 66 forks source link

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

Open ArmanKumar21 opened 2 years ago

ArmanKumar21 commented 2 years ago

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.

Aniumbott commented 2 years ago

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

SanjoySaha24 commented 2 years ago

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

Abhigitlog commented 1 year ago

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.