Wrong answers/////

heyy, i m getting wrong answers for all the tc though it is giving correct ans for the given input. Please check:

@Aparna hey you are not pushing the element when size of heaps are equal, also you are first comparing data with current median inside that you are not making comparision for the case then size of heaps is equal.
Simplify the implementation.
Make three case
min_heap.size()>max_heap.size()
min_heap.size()==max_heap.size()
min_heap.size()<max_heap.size()
Inside each case compare the data with current median.
Also use long long.
If this resolves your doubt mark it as resolved.

okay thankyou…^.^