On Oct 16, 2006, at 3:00 PM, Miller, Raul D wrote:
I wrote:
(0 >. +)/&.|.\ a
/ is right to left, but gambler uses left to right.
/(&.|.) is left to right.
&. is unnecessary and could cause problems in the general
case (not this specific case). As & is sufficient, I should
have said:
(0 >. +)/&|.\ a
and so on.
--
Raul
The At Play With J article in Vector 15.2, October 1998, has a
discussion of what it calls "Maximum Infix Sums" which may pertain to
this problem.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm