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
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
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