[algogeeks]

2011-07-25 Thread Mahendran MAHEM
search for two elements in sorted array,and the sum of the two elements should equal to the equal two the input input: a value (a+b=value),an sorted array output: a ,b where a+b=the given input... -- MAHEM -- You received this message because you are subscribed to the Google Groups "Algori

Re: [algogeeks] Re: next multiple of 8

2010-09-26 Thread Mahendran MaheM
sry...i dnt get the qstn clearly. On Sat, Sep 25, 2010 at 10:18 PM, Dave wrote: > Simpler: answer = (x || 7) + 1 > > Dave > > On Sep 25, 10:14 am, rajess wrote: > > scan last(left) 4 bits .if the bits are not 1000.make them 1000.else > > scan from left till u find first one(1).make this bit

Re: [algogeeks] Re: Inserting a box with lesser dimension into a box of bigger dimensions than that.

2010-09-22 Thread Mahendran MaheM
i dnt thnk it is gud to find the volume of the box, becoz a best fit vol box may have higher length or hight or width,,,... so LET JUST TRY MY IDEA,. step1: first get that which box is taken to be first insert that step2: then select all the boxes which having