Given a sorted array A, find the size of array A after removing the duplicate elements.
A: [1 2 3 3 3 4 5 5]
Size of A after removing duplicate elements: 5
The first line contains an integer ‘T’ denoting the number of test cases.
For each test case, the input contains two lines:
For each test-cases, the output has a line with an integer ‘len’ denoting the length of the resultant array.
2
5
1 1 1 2 2
6
1 3 3 3 4 4
2
3
1 <= T <= 100
1 <= n <= 104
1 <= Ai <= 105