Skip to content

Tag Archives: Arithmetic Progressions

Given 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… Read More
Given two integers L and R, the task is to find the number of unique triplets whose values lie in the range [L, R], such… Read More
Given two integers S and D, the task is to count the number of Arithmetic Progressions possible with sum S and common difference D. Examples:… Read More
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
A progression is a sequence or series of numbers in which they are arranged in a particular order such that the relation between the consecutive… Read More
Arithmetic Progression is a sequence of numbers where the difference between any two successive numbers is constant. For example 1, 3, 5, 7, 9……. is in… Read More