I use a max heap to maintaining the most recent posts from all channels then keep pushing them to the docs. So the time complexity is better than the previous one a little bit.
I don't know if this is good enough optimization. Merge it if you guys find it helpful or please tell me the way if i can improve this and get it to be merged, thank you!
I use a max heap to maintaining the most recent posts from all channels then keep pushing them to the docs. So the time complexity is better than the previous one a little bit. I don't know if this is good enough optimization. Merge it if you guys find it helpful or please tell me the way if i can improve this and get it to be merged, thank you!