Finding median using heaps

My code is giving correct output but showing TLE when submitting.
Please resolve.

mistakes

  1. use int instead of float
    as it is not mention in question to print median with decimal

  2. you have to take n no of elelments in every testacase

  3. you have to take one element seperately

  4. new priority queues should be make for each testcase

modified Code

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved :grinning:
if you have more doubts regarding this feel free to ask