Why in test case 2 and test case 3 it is giving TLE although i have used the right approach?

Why in test case 2 and test case 3 it is giving TLE although i have used the right approach???

Please reply my query.Code is not getting submitted

at line no 36 correct statement will be

if(data>=median)
           {
               minheap.push(data);
           }

Modified Code

if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with :heart: and don’t forgot to mark doubt as resolved