DSA icon indicating copy to clipboard operation
DSA copied to clipboard

Largest Arithmetic Subarray

Open priyanka001tech opened this issue 3 years ago • 1 comments

A has an array of N non-negative integers. A wants to calculate maximum length of contiguous arithmetic subarray.

Arithmetic Subarray is an array that contains at least two integers and the difference between consecutive integers are equal. For example [9,10] , [3,3,3] and [9,7,5,3] arithmetic arrays.

Input: No. of test cases T integer no N array A[]

priyanka001tech avatar Oct 01 '21 06:10 priyanka001tech