Re: [algogeeks] median from continuous stream

2011-11-08 Thread tech coder
using a max heap and min heap we can find the median On Tue, Nov 8, 2011 at 10:59 AM, Arun Vishwanathan wrote: > Hi to find running median from a stream of random generated numbers I have > heard of the 2 heap ( min and max heap ) solution but I fail to understand > it...could someone please e

[algogeeks] median from continuous stream

2011-11-08 Thread Arun Vishwanathan
Hi to find running median from a stream of random generated numbers I have heard of the 2 heap ( min and max heap ) solution but I fail to understand it...could someone please explain with a small example or so ?? thanks! -- "People often say that motivation doesn't last. Well, neither does bat