List iteration optimization
List iteration optimization Question: I’m trying to create a function to find the longest segment within a given list t, which satisfies two conditions: The last number of the segment has to be equal or greater than the first number of the segment. Difference between the last number and the first number of the segment …