0
1 min read

Input:

2
5
1 2 3 5
10 
1 2 3 4 5 6 7 8 10

output:

4
9
Vishal Sharma Answered question July 30, 2019