Given an integer N, the task is to count all arithmetic progression with common difference equal to 1 and the sum of all its elements… Read More

# Tag Archives: arithmetic progression

Given a sorted array arr[] consisting of N distinct elements, the task is to find the maximum possible common difference of an arithmetic progression such… Read More

Given string str, the task is to check if it is possible to rearrange the string such that the characters of each word of the… Read More

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

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 than 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 Arithemetic 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.Examples: … Read More