Topic: Array Problem / Level: intermediate

Problem: Find the minimum number of elements to remove from an array to make all remaining elements form an arithmetic progression.

Run the code to see the output here...