Re: [algogeeks] Answer This

2010-12-16 Thread Krishna Narasimhan
Aditya, 1) Nobody dies on the first 19 days everyone dies on the 20th day. 2) Even if it wasnt the case, why should he die just because nobody else did? Is there any condition on THERE SHOULD BE ATLEAST ONE GREEN EYED GUY? On Fri, Dec 17, 2010 at 12:52 PM, Aditya Agrawal adit6...@gmail.com

Re: [algogeeks] Find push/pop/min or max in O(1)

2010-09-30 Thread Krishna Narasimhan
@ashuthosh: MAintaining min and max pointers would mean another way of saying constant space right? On Thu, Sep 30, 2010 at 12:17 AM, saurabh singh saurabh.n...@gmail.comwrote: You will just need to see what is min and max available on the current top before push. in case of pop u dnt need