Heaps: Find the Running Median

  • + 1 comment

    This has no advantage than just a sorted array in my mind.

    the tricks to avoid timeout is really when insert element into a sorted array should be try to use binary search, which always try size/2 position then try next position.