Rashi Desai
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}} *)

--

--

Rashi Desai
Rashi Desai

Written by Rashi Desai

An Analytics Consultant from Chicago & Top 100 writer on Medium. Everyone loves a good story & I tell mine with data!

No responses yet