You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master, feel free to give a star:) )
int findMedian(std::vector<int> _v) { std::sort(_v.begin(), _v.end()); return _v.at(_v.size() / 2); }
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Median
You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master, feel free to give a star:) )