Given two integers A, B which are any two terms of an Arithmetic Progression series, and an integer N, the task is to to construct… Read More

# Tag Archives: arithmetic progression

Given two integers A, B which are any two terms of an Arithmetic Progression series, and an integer N, the task is to minimize the… Read More

Given an array arr[] consisting of N integers, the task is to find the length of the longest subsequence that forms an Arithmetic Progression. Examples:… Read More

Given the three integers N, X, and Y the task is to find an N length arithmetic progression series with the least possible first term… Read More

Given four positive numbers A, B, C, D, such that A and B are the first term and the common difference of first Arithmetic sequence… Read More

Given two positive integers N and M, the task is to find the count of all possible numbers in the range [1, M], having suffix… Read More

Given a Binary Tree, the task is to count all paths from root to leaf which forms an Arithmetic Progression. Examples: Input: Output: 2 Explanation: The paths… Read More

Given a string S that consists of letters such that their ASCII values follow an Arithmetic Progression. The task is to find the letter and… Read More

Given an integer K and an array arr[] of N integers, each of which is the first term and common difference of an Arithmetic Progression,… Read More

Given an unsorted array arr[] of N integers that are in Arithmetic Progression, the task is to print the missing element from the given series.… Read More

Given two integers N and K, the task is to find K consecutive integers such that their sum if N.Note: If there is no such… Read More

Given two arrays arr1[] and arr2[] of size M and N respectively. Both arrays are in Arithmetic Progression and the first element of both arrays… Read More

Given an array arr[] of size N, the task is to find the count of all arithmetic sequences in the array. Examples: Input: arr =… Read More