hope this works.. http://ideone.com/XSJRJ
On Fri, May 18, 2012 at 8:20 AM, Bhaskar Kushwaha < [email protected]> wrote: > It depends on which column you are pouring the water. > For example > If you choose the shortest column to pour the water then only that column > will be filled with water. > > Please correct me if I am wrong. > > > On Thu, May 17, 2012 at 11:27 AM, Nikhil Agarwal < > [email protected]> wrote: > >> Imagine that you have an histogram stored in an array. Now imagine that >> you can pour water on top of your histogram. Describe an algorithm that >> computes the amount of water that remains trapped among the columns of the >> graph. Clearly on the edges the water would fall off. Use the language or >> the pseudocode you prefer. >> >> -- >> Thanks & Regards >> Nikhil Agarwal >> B.Tech. in Computer Science & Engineering >> National Institute Of Technology, Durgapur,India >> http://tech-nikk.blogspot.com >> http://beta.freshersworld.com/communities/nitd >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > regards, > Bhaskar Kushwaha > Student > CSE > Third year > M.N.N.I.T. Allahabad > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
