leetcode
2760. Longest Even Odd Subarray With Threshold
Solution code
Time complexity: O(n)
Space complexity: O(1)