trendlist.simple.pfx_trend

trendlist.simple.pfx_trend(s: list[int]) list[int]

Return the first trend in the sequence.

Args:

s: the sequence to find the prefix trend of.

Returns:

Longest prefix that is a trend.