Demo entry 2842047

rubtik

   

Submitted by anonymous on Oct 11, 2015 at 19:19
Language: c-objdump. Code size: 199 Bytes.

MaxSoFar := 0.0
for L := 1 to N do
	for U := L to N do
		Sum := 0.0
		for I := L to U do
			Sum := Sum + X[I]
		/* Sum now contains the 
			sum of X[L..U] */
		MaxSoFar := max (MaxSoFar, Sum)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).