sources/hackerrank/find-the-running-median/main.cpp
vector<double> runningMedian(vector<int>& a) {
    slidingWindowMedian w;

    std::vector<double> medians;
    for (auto v : a)
    {
        w.push_back(v);
        medians.push_back(w.get_median());
    }
    return medians;
}
/*
 * Complete the runningMedian function below.
 */
Complete the runningMedian function below.
Complete the runningMedian function below .
vector<double> runningMedian(vector<int>& a) {
    slidingWindowMedian w;
    std::vector<double> medians;
    for (auto v : a)
    {
        w.push_back(v);
        medians.push_back(w.get_median());
    }
    return medians;
}
vector < double > runningMedian ( vector < int > & a ) { slidingWindowMedian w ; std :: vector < double > medians ; for ( auto v : a ) { w . push_back ( v ) ; medians . push_back ( w . get_median ( ) ) ; } return medians ; }
Complete the runningMedian function below.
Complete the runningMedian function below .