PRODUCTS: Bansal Sir
2 posters
Page 1 of 1
PRODUCTS: Bansal Sir
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
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- Posts : 58
Join date : 2009-02-01
Re: PRODUCTS: Bansal Sir
in first go multiply all elements...get product
in second go..just keep on dividing that product with the no at that index...
in second go..just keep on dividing that product with the no at that index...
$corpion- Posts : 25
Join date : 2009-01-30
Age : 37
Similar topics
» ASCII VALUE : Bansal Sir
» Guess Output - Bansal Sir
» FIND ELEMENTS: Bansal Sir
» from ACM modified first problem:Bansal Sir
» NESTED INDENTATION:Bansal Sir
» Guess Output - Bansal Sir
» FIND ELEMENTS: Bansal Sir
» from ACM modified first problem:Bansal Sir
» NESTED INDENTATION:Bansal Sir
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|