Queries to check if array elements from indices [L, R] forms an Arithmetic Progression or notGiven an array arr[] consisting of N integers and an array Q[][2] consisting of M queries of the form {L, R}, the task for each query is to check if array elements over the range [L, R] forms an Arithmetic […]

Continue Reading