Acontiguous subsequence of a list s is a subsequence made up of consecutive elements of s.for instance,if s is 5,15,-30,10,-5,40,10,then 15,-30,10 is contiguous subsequence but 5,15,40 is not.give an o(n) time algorithm for the following task : -
input : - a list of numbers a1,a2,

Solved
Show answers

Ask an AI advisor a question