Skip to content

Instantly share code, notes, and snippets.

View bcjordan's full-sized avatar

Brian Jordan bcjordan

View GitHub Profile
@bcjordan
bcjordan / index.html
Last active December 27, 2015 12:39 — forked from mpenkov/mcs.html
<html>
<head>
<title>Max Consecutive Sum</title>
</head>
<body>
Enter some integers:
<input type="text" id="txtInput" value="-1 5 6 -2 20 -50 4"></input>
<button onClick="btnOnClick();">Calculate</button>
<p>
Max consecutive sum is: <span id="divResult"></span>