Increasing or Decreasing Sequence

You are given a sequence of numbers, represented as a list of integers. Your task is to implement a function that Determine if the sequence is strictly increasing, strictly decreasing, or neither. A sequence is strictly increasing if each element is greater than the previous element, strictly decreasing if each element is less than the previous element, and neither if it does not meet either condition.


Leave a Comment