Longest arithmetic progression in a sorted array

mediumLast edited: September 29, 2025