Given the marks of all students, calculate the median.
The first line of input takes the number of test cases, T. For each test case there will be two lines. The first line contains an integer N denoting the number of students, and second line contains N space seperated integers which denotes the marks of N students.
Print the floor value of the median for each test case on a new line.
1 <= T <= 100
1 <= N <= 100
1 <= Marks <= 100
56 67 30 79
78 89 67 76
90 100 78 89 67
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.