CommonLounge Archive

[RMID2] Running Median Again

December 06, 2017

Take as input a list of positive integers. Whenever -1 is given as input, you must output the median of the list, and remove it from the list.


© 2016-2022. All rights reserved.