Given a list of positive integers, write code that finds the length of longest contiguous sub-list that is increasing (not strictly). That is the longest sublist such that each element is greater than or equal to the last.
For example if the input was:
\$[1,1,2,1,1,4,5,3,2,1,1]\$
The longest increasing sub-list would be \$[1,1,4,5]\$, so you would output \$4\$.
Your answer will be scored by taking its source as a list of bytes and then finding the length of the longest increasing sub-list of that list. A lower score is the goal. Ties are broken in favor of programs with fewer overall bytes.
True
being a substitute for1
but it may be. You should be able to handle the empty list (Output is of course 0). \$\endgroup\$[] => 0
,[0] => 1
,[3,2,1] => 1
,[1,2,1,2] => 2
\$\endgroup\$