blakeembrey / code-problems

Common code and interview problems solved in multiple languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS and CoffeeScript solutions to Largest Continuous Sum fail for arrays of negative numbers

tclamb opened this issue · comments

Given the input [-1], both return 0 as the largest continuous sum of the array, when it clearly is -1 (i.e. the only sum of the array). The problem description contains the solution to this problem.