[algogeeks] Re: what will happen in the village

2009-09-13 Thread karthikm897
I think there will be atleast 1 sleeping creature at last that can either be a man or a demon... I've heard a little modified version of this question that is that is if there are n tiger and 1 sheep in an island, if any tiger eats the sheep then that itself would turn into another sheep and no t

[algogeeks] Re: max product of any three nos in an array of signed integers

2009-09-13 Thread karthikm897
if there are n numbers then sort it multiply three numbers from the last... thats it.. On Sep 13, 6:34 pm, SP Praveen wrote: > Given an array of integers (signed integers), find three numbers in > that array which form the maximum product. --~--~-~--~~~---~--~---