[algogeeks] MS BRAINTEASR

2011-08-18 Thread pg@manit
A bunch of men are on an island. A genie comes down and gathers everyone together and places a magical hat on some people’s heads (i.e., at least one person has a hat). The hat is magical: it can be seen by other people, but not by the wearer of the hat himself. To remove the hat, those (and only

[algogeeks] Maximum profit

2011-08-18 Thread pg@manit
i came across a questioncud anyone suggest how to go with this problem...to me it seems to be based on greedy algo You are now incharge of a private hall. People book your hall for different purposes like marriage, meetings and other ceremonies we will consider all these events just as a