Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
A
MINI PROJECT
DATA STRUCTURES
(CS1303)
III SEMESTER
Submitted
By
Test Cases:
1. Input:
4 //No. Of elements in Tree 1
1
2
3
4
4 //No. Of elements in Tree 2
1
2
3
4
7 //sum to find number of pairs which add up to this value
Output:
Number of pairs: 2
2. Input:
3 //No. Of elements in Tree 1
1
4
5
3 //No. Of elements in Tree 2
8
9
10
8 //sum to find number of pairs which add up to this value
Output:
Number of pairs: 0
3. Input:
4 //No. Of elements in Tree 1
9
8
7
6
3 //No. Of elements in Tree 2
6
3
4
9 //sum to find number of pairs which add up to this value
Output:
Number of pairs: 1
4. Input:
7 //No. Of elements in Tree 1
5
3
7
2
4
6
8
7 //No. Of elements in Tree 2
10
6
15
3
8
11
18
16 //sum to find number of pairs which add up to this value
Output:
Number of pairs: 3