mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

PRODUCTS: Bansal Sir

2 posters

Go down

PRODUCTS: Bansal Sir Empty PRODUCTS: Bansal Sir

Post  ballu Sun Feb 01, 2009 10:00 pm

GIven an array of n integers ,
in O(2*n) give the final ouptut such that every element in the integer contains the product of all other numbers except the number
originaly at the index
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

PRODUCTS: Bansal Sir Empty Re: PRODUCTS: Bansal Sir

Post  $corpion Mon Feb 02, 2009 1:23 am

in first go multiply all elements...get product
in second go..just keep on dividing that product with the no at that index...
$corpion
$corpion

Posts : 25
Join date : 2009-01-30
Age : 37

Back to top Go down

PRODUCTS: Bansal Sir Empty @scorpion

Post  ballu Mon Feb 02, 2009 1:57 am

dude u cant divide jocolor
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

PRODUCTS: Bansal Sir Empty Re: PRODUCTS: Bansal Sir

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum