Maximum Product Contiguous subarray
- From: Bootlegger <bootlegger@xxxxxxxx>
- Date: 25 Apr 2007 05:29:01 -0700
We've all seen the maximum sum contiguous subarray problem, but heres
a new take on it: maximum PRODUCT contiguous subarray:
Suppowe we have an array A[1 to n] of n integers (positive and
negative), Find the maximum product found in any contiguous subarray
and produce the pseudo-code for in.
I've had a crack and im struggling with this, apparently it can be
done in O(n) time.
Anyone any idea's?
.
- Follow-Ups:
- Re: Maximum Product Contiguous subarray
- From: Robby Goetschalckx
- Re: Maximum Product Contiguous subarray
- Prev by Date: Vacancy: Assistant/Associate Professor Algorithmics TUD
- Next by Date: Re: Maximum Product Contiguous subarray
- Previous by thread: Vacancy: Assistant/Associate Professor Algorithmics TUD
- Next by thread: Re: Maximum Product Contiguous subarray
- Index(es):