Task: Maximum Index Difference with Value Constraint
Task: Maximum Index Difference with Value Constraint: a task in Terminal-Lego-15k (Harbor dataset). Given an unsorted array of integers, find the maximum difference j - i between indices such that: 1. j i (j is a larger index than i) 2. a j a i (the element at index j is greater than the element…
Part of PrimeIntellect/Terminal-Lego-15k.