public static void main(String args[]) {
        MedianFinder mf = new MedianFinder();
        mf.addNum(4);
        System.out.println(mf.findMedian());
        mf.addNum(8);
        System.out.println(mf.findMedian());
        mf.addNum(2);
        System.out.println(mf.findMedian());
        mf.addNum(11);
        System.out.println(mf.findMedian());
        mf.addNum(13);
        System.out.println(mf.findMedian());
        mf.addNum(14);
        System.out.println(mf.findMedian());
        mf.addNum(-1);
        System.out.println(mf.findMedian());

    }
Date 03/03/2016
@author Tushar Roy

Find median in stream of numbers

https://leetcode.com/problems/find-median-from-data-stream/
src/com/interview/stackqueue/MedianFinder.java