@Don:  given stack will be 20 1 3 1 5 1 6 1 2 1

Minimum Stack will be 20 1 1 1 1 1

After pop 1

min stack   20 1 1 1 1

pop 2

min stack 20 1 1 1 1

pop 1
min stack 20 1 1 1

pop 6
min stack 20 1 1 1

pop1
min stack 20 1 1

pop 5
min stack 20 1 1

pop 1
min stack 20 1

pop 3
min stack 20 1

pop 1

min stack 20

By this way we can minimize the memory occupied by minimum stack.
Pl let me know where i m going wrong

Regards,
S.C.Harish


On Tue, Sep 6, 2011 at 5:52 PM, Don <dondod...@gmail.com> wrote:

> in

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to