Feb 13, 2023
Let's say you are given a list of integers, your task is to find the largest sum possible (by writing a code ofcourse) from a contiguous sub-sequence.
{1, 2, 3, 4, 5, -1, 7, -4, -2}
* The largest sum would be 21 *
(* {21,{1,2,3,4,5,-1,7}} *)