can you plse give a better approach thn this one
Median in a stream of running integers
Hello @Vignesh_77, the approach you are using is already the best approach for this type of problem. This is the kind of standard problem and this is the only approach that generally everyone prefers to do. But in case you you want to use anything else you can use multiset instead of the priority_queue. Take the two multiset and in one access from the back and in the other one access from the front. Although the overall idea remains the same.