2 ms·
Your solution is for median position, not median value, and it would require a queue, not a stack, so unneeded old values could be dropped.
by Drbble 14y ago
Your solution is for median position, not median value, and it would require a queue, not a stack, so unneeded old values could be dropped.
- sixothree 14y agoOf course, a queue is correct.