2 lines
97 B
Text
2 lines
97 B
Text
|
|
MaximumSubsequence[x_List]:=Last@SortBy[Flatten[Table[x[[a;;b]], {b,Length[x]}, {a,b}],1],Total]
|